Permalink
Browse files

Ign ripped

  • Loading branch information...
1 parent 5a38c8d commit 6b7eb40acb55aefd46c079d38c9753bbfa2a38d1 unknown committed Feb 29, 2012
Showing with 342 additions and 415 deletions.
  1. +17 −0 ign.py
  2. BIN linkgrab.pyc
  3. +1 −1 ratingagreg.wpr
  4. +324 −414 ratingagreg.wpu
  5. BIN scoregrab.pyc
View
17 ign.py
@@ -0,0 +1,17 @@
+import os
+from urllib2 import urlopen
+from urlparse import urljoin,urlsplit
+from bs4 import BeautifulSoup as bs
+
+#for i in range(85):
+url="http://m.ign.com/games/reviews-editors-choice/p1"
+soup=bs(urlopen(url).read())
+info=soup.find("ul")
+ab=info.li
+#print str(ab)
+while (ab):
+ name=str(ab.a.findAll("span")[1].h3.contents[0])
+ rating=str(ab.a.span.contents[0])
+ type=str(ab.a.findAll("span")[1].span.contents[0])
+ print name , rating , type
+ ab=ab.nextSibling.nextSibling
View
Binary file not shown.
View
@@ -1,5 +1,5 @@
#!wing
-#!version=3.0
+#!version=4.0
##################################################################
# Wing IDE project file #
##################################################################
Oops, something went wrong.

0 comments on commit 6b7eb40

Please sign in to comment.