Skip to content

Instantly share code, notes, and snippets.

@Eezzeldin
Eezzeldin / Cricket data.py
Created July 19, 2016 17:36 — forked from hybridjosto/Cricket data.py
scraping data from a web table using python and Beautiful Soup
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: