create account

[ESP-ENG] Titulos y enlaces en edweek || Titles and links in edweek by pynomiems

View this thread on: hive.blogpeakd.comecency.com
· @pynomiems ·
$2.91
[ESP-ENG] Titulos y enlaces en edweek || Titles and links in edweek
<center>

https://i.ibb.co/KsB9WrF/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>

<div class="text-justify">

<pre>

import asyncio
import aiohttp
from selectolax.parser import HTMLParser

headers={'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36 Edg/87.0.664.75'}

async def parsing_site():
    
    async with aiohttp.ClientSession() as session:
        
        urls_list=['https://www.edweek.org/leadership',
                'https://www.edweek.org/policy-politics',
                'https://www.edweek.org/teaching-learning',
                'https://www.edweek.org/technology',
                'https://www.edweek.org/opinion']


        for urls_list in urls_list:
        
            async with session.get(urls_list,headers=headers) as pages:
                
                edweek = await pages.text() 
                edweek_raw = HTMLParser(edweek)
                 
                for hl in edweek_raw.css('div > div > a'):
    
                    headlines=hl.text(strip=True)
                    links=hl.attributes['href']
    
                    print(f'headlines: {headlines} links: {links}')

asyncio.run(parsing_site())

</pre>

</div>

<center>

https://i.ibb.co/ZX0xgxj/result.png

</center>

<center>

https://i.ibb.co/b26tJnB/result-II.png

</center>

---

<center>

## Text translated by <a href="https://www.deepl.com/es/translator">DeepL</a>

</center>
👍  , , , , ,
properties (23)
authorpynomiems
permlinkesp-eng-titulos-y-enlaces-en-edweek-titles-and-links-in-edweek
categorysites
json_metadata"{"app": "peakd/2022.11.2", "tags": ["sites", "blogs", "collection"]}"
created2022-12-23 07:19:09
last_update2022-12-23 07:19:09
depth0
children1
last_payout2022-12-30 07:19:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value2.909 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,604
author_reputation273,261,352,410,025
root_title"[ESP-ENG] Titulos y enlaces en edweek || Titles and links in edweek"
beneficiaries
0.
accountreward.app
weight10,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id119,321,464
net_rshares16,065,671,663,492
author_curate_reward""
vote details (6)
@hivebuzz ·
Congratulations @pynomiems! You have completed the following achievement on the Hive blockchain And have been rewarded with New badge(s)

<table><tr><td><img src="https://images.hive.blog/60x70/http://hivebuzz.me/@pynomiems/posts.png?202212230750"></td><td>You published more than 500 posts.<br>Your next target is to reach 550 posts.</td></tr>
</table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@pynomiems) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>
<sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub>


To support your work, I also upvoted your post!


**Check out our last posts:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/christmas-2022"><img src="https://images.hive.blog/64x128/https://i.imgur.com/KKmOcWi.png"></a></td><td><a href="/hivebuzz/@hivebuzz/christmas-2022">Christmas Challenge - Offer a gift to your friends</a></td></tr><tr><td><a href="/hive-102201/@hivebuzz/wc2022-feedback"><img src="https://images.hive.blog/64x128/https://i.imgur.com/X2tRVVa.png"></a></td><td><a href="/hive-102201/@hivebuzz/wc2022-feedback">HiveBuzz World Cup Contest - Sponsor Feedback and Feedback Request</a></td></tr><tr><td><a href="/hive-102201/@hivebuzz/wc2022-results-sponsors"><img src="https://images.hive.blog/64x128/https://i.imgur.com/e62eHrt.png"></a></td><td><a href="/hive-102201/@hivebuzz/wc2022-results-sponsors">HiveBuzz World Cup Contest - Prizes from our sponsors</a></td></tr><tr><td><a href="/hive-139531/@hivebuzz/proposal-2324"><img src="https://images.hive.blog/64x128/https://i.imgur.com/RNIZ1N6.png"></a></td><td><a href="/hive-139531/@hivebuzz/proposal-2324">The Hive Gamification Proposal Renewal</a></td></tr></table>

###### Support the HiveBuzz project. [Vote](https://hivesigner.com/sign/update_proposal_votes?proposal_ids=%5B%22248%22%5D&approve=true) for [our proposal](https://peakd.com/me/proposals/248)!
properties (22)
authorhivebuzz
permlinknotify-pynomiems-20221223t075744
categorysites
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2022-12-23 07:57:45
last_update2022-12-23 07:57:45
depth1
children0
last_payout2022-12-30 07:57:45
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,956
author_reputation369,559,343,034,173
root_title"[ESP-ENG] Titulos y enlaces en edweek || Titles and links in edweek"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id119,322,113
net_rshares0