Skip to content

Instantly share code, notes, and snippets.

@mwshubham
Created July 22, 2018 06:12
Show Gist options
  • Save mwshubham/778bba4ea121d8db9575ed59cc849458 to your computer and use it in GitHub Desktop.
Save mwshubham/778bba4ea121d8db9575ed59cc849458 to your computer and use it in GitHub Desktop.
Scape file in python
#!/usr/bin/python
import urllib
from bs4 import BeautifulSoup
for i in range(101,9851):
url = 'https://app.getpricedrop.com/detail/' + str(i) +'?utm_source=whatsapp&utm_medium=msg'
boxurl = urllib.urlopen(url).read()
soup = BeautifulSoup(boxurl)
linescoreA = soup.find("span", {"class": "wrapper-word-price"})
print linescoreA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment