Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Made By Strangegeorge
- #Contact me:[email protected]
- #!/usr/bin/python
- import urllib2
- connection = urllib2.urlopen('http://www.goals365.com/feed/soccer/')
- html_code = connection.read()
- txt_file = "results.txt"
- results = open(txt_file,'w')
- start_point = html_code.find('xcomp[1]=Array')
- print start_point
- end_point = html_code.find('border=0>";')
- print end_point
- scores = html_code[start_point : end_point]
- results.write(scores)
- print scores
Add Comment
Please, Sign In to add comment