Scraping two values - url and date and having the return results paired.

18 views
Skip to first unread message

leonardr

unread,
May 11, 2016, 12:02:06 PM5/11/16
to beautifulsoup
Here's a message sent by Citramarillo <pick...@gmail.com> which I mistakenly marked as spam. I don't see any way to undo that so I'm just re-posting the question myself:

I have a working code that scrapes 'a href' tags for the urls and I can get
the date info from the nested 'p' tags. What I would like to know is how do
I get the returned info to be paired i.e. - 'target_url', 'Today's date' ?

   <div class='blah'>
        <a href='target_url'>
        <p class='date'>Today's date</p>

Scraping two values - url and date and having the return results paired
Reply all
Reply to author
Forward
0 new messages