Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
alexconx committed Jun 28, 2018
1 parent 89c4fa5 commit cde4bdf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.py
Expand Up @@ -15,7 +15,9 @@

for a in soup.find_all('a', href=True, class_='user-ad-row user-ad-row--no-image link link--base-color-inherit link--hover-color-none link--no-underline'):
list_url.append("https://www.gumtree.com.au"+a['href'])
print (a['user-ad-row__location-area'])

for span in soup.find_all('span', class_='user-ad-row__location-area'):
print (span['user-ad-row__location-area'])

for a in soup.find_all('a', href=True, class_='user-ad-row user-ad-row--featured-or-premium user-ad-row--no-image link link--base-color-inherit link--hover-color-none link--no-underline'):
list_url.append("https://www.gumtree.com.au"+a['href'])
Expand Down

0 comments on commit cde4bdf

Please sign in to comment.