<center> https://i.ibb.co/xG2h6Tz/Preview.png<center>Imagen diseñada con <a href="https://www.canva.com/">canva</a> || Image designed with <a href="https://www.canva.com/">canva</a></sub> </center> </center> <div class="text-justify"> <pre> import asyncio import aiohttp from selectolax.parser import HTMLParser headers={'user-agent': 'Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_5 rv:3.0; sl-SI) AppleWebKit/534.49.1 (KHTML, like Gecko) Version/4.0.1 Safari/534.49.1'} async def parsing_page(): async with aiohttp.ClientSession() as session: for idx in range(2,6): async with session.get(f'https://www.switchdoc.com/category/raspberrypicat/page/{idx}/',headers=headers) as page: switchdoc=await page.text() switchdoc_html=HTMLParser(switchdoc) for hl in switchdoc_html.css('div > header > h3 > a'): h=hl.text(strip=True) l=hl.attributes['href'] print(f'headlines: {h} links: {l}') asyncio.run(parsing_page()) </pre> </div> <center> https://i.ibb.co/R2PbsHX/Result.png </center> https://i.ibb.co/NWTD0DQ/Result-II.png <center>
author | pynomiems | ||||||
---|---|---|---|---|---|---|---|
permlink | esp-eng-titulos-y-enlaces-en-switchdoc-titles-and-links-in-switchdoc | ||||||
category | sites | ||||||
json_metadata | "{"app": "peakd/2023.2.2", "tags": ["sites", "blogs", "collection"]}" | ||||||
created | 2023-02-14 16:39:06 | ||||||
last_update | 2023-02-14 16:39:06 | ||||||
depth | 0 | ||||||
children | 0 | ||||||
last_payout | 2023-02-21 16:39:06 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.000 HBD | ||||||
curator_payout_value | 5.846 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 1,205 | ||||||
author_reputation | 273,261,352,410,025 | ||||||
root_title | "[ESP-ENG] Titulos y enlaces en switchdoc || Titles and links in switchdoc" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 120,776,097 | ||||||
net_rshares | 19,252,158,925,235 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
raphaelle | 0 | 133,904,646,598 | 100% | ||
lizanomadsoul | 0 | 4,479,822,032 | 3% | ||
pastzam | 0 | 913,201,854,519 | 100% | ||
paasz | 0 | 5,341,861,262 | 100% | ||
zammie | 0 | 3,046,407,729 | 100% | ||
pastrane | 0 | 3,006,683,145 | 100% | ||
lalupita | 0 | 226,103,655,465 | 100% | ||
jnmarteau | 0 | 737,175,952 | 3% | ||
cwow2 | 0 | 6,255,668,923 | 3% | ||
pandaparker | 0 | 13,244,467,493 | 100% | ||
thranax | 0 | 96,748,046,517 | 100% | ||
pessal | 0 | 187,158,326,508 | 100% | ||
ukulima | 0 | 1,376,761,857,446 | 100% | ||
fengchao | 0 | 72,462,845,502 | 5% | ||
hivebuzz | 0 | 13,880,264,123 | 3% | ||
nautilus-up | 0 | 7,916,140,230,954 | 100% | ||
life-timer | 0 | 7,797,655,581,295 | 100% | ||
hive-108278 | 0 | 886,035,188 | 50% | ||
zangano | 0 | 3,055,568,123 | 100% | ||
methodofmad | 0 | 478,087,926,461 | 100% |