Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Feng-Gao committed Apr 12, 2019
1 parent ae278e3 commit 6a7f62c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scraper.py
Expand Up @@ -61,6 +61,9 @@
#we are now on the actual dataset detail page
result = requests.get(package_url,headers=headers)
soup = BeautifulSoup(result.content,features='lxml')

if soup.head.title.text == 'Error':
continue

package_org = soup.find(attrs={'class':'dataset-author'}).a.text.strip()

Expand Down

0 comments on commit 6a7f62c

Please sign in to comment.