strangegeorge

Download Matches Python Script

Oct 14th, 2011
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.47 KB | None | 0 0
  1. #Made By Strangegeorge
  2. #Contact me:[email protected]
  3.  
  4. #!/usr/bin/python
  5.  
  6. import urllib2
  7. connection = urllib2.urlopen('http://www.goals365.com/feed/soccer/')
  8. html_code = connection.read()
  9.  
  10. txt_file = "results.txt"
  11. results = open(txt_file,'w')
  12.  
  13. start_point = html_code.find('xcomp[1]=Array')
  14. print start_point
  15. end_point =  html_code.find('border=0>";')
  16. print end_point
  17.  
  18. scores = html_code[start_point : end_point]
  19.  
  20. results.write(scores)
  21.    
  22. print scores
  23.  
  24.  
Add Comment
Please, Sign In to add comment