Skip to content

Commit

Permalink
Update scraper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandhunt committed Jan 26, 2020
1 parent 0911174 commit 556a959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scraper.py
Expand Up @@ -677,9 +677,9 @@ def doesscrapeurlexist(scrapesitelist, scrapeurl):
#print('IMAGE DOM: ' + image_dom)
if altimggrab == '1':
output = re.finditer(r'image\=\"(.*)\"', image_dom, flags=re.U)
if output[1].len() > 0:
if output[1].group().len() > 0:
#removed_top_element = output.pop(0)
image_urls = output[1]
image_urls = output[1].group()
elif altimggrab == '2':
output = re.search(r'src\=\"(.*)\"', image_dom, flags=re.U)
if output.len() > 0:
Expand Down

0 comments on commit 556a959

Please sign in to comment.