Skip to content

Instantly share code, notes, and snippets.

Avatar

Emad Mohamed Eezzeldin

View GitHub Profile
@Eezzeldin
Eezzeldin / Cricket data.py
Created Jul 19, 2016 — forked from hybridjosto/Cricket data.py
scraping data from a web table using python and Beautiful Soup
View Cricket data.py
import urllib2
from bs4 import BeautifulSoup
# http://segfault.in/2010/07/parsing-html-table-in-python-with-beautifulsoup/
f = open('cricket-data.txt','w')
linksFile = open("linksSource.txt")
lines = list(linksFile.readlines())
for i in lines[12:108]: #12:108
url = "http://www.gunnercricket.com/"+str(i)
try: