Permalink
Browse files

commit

  • Loading branch information...
0 parents commit 30a8c801a539b2d4fa9fc25f9ea2ac986fdd2f42 KryptonX committed Nov 8, 2011
Showing with 18 additions and 0 deletions.
  1. +4 −0 README
  2. +14 −0 urlops.pyw
4 README
@@ -0,0 +1,4 @@
+urlOPS is a simple Python script that allows an user and coder to get the page source of ANY webpage and save it into a text file.
+*Works for JavaScript files, CSS, PHP, etc.
+
+~kryptonX
@@ -0,0 +1,14 @@
+import urllib
+web = raw_input("http location: ")
+filename = raw_input("Enter the filename: ")
+
+
+
+def urlOpen(http, name):
+ pfile = open(name + '.log', 'w')
+ filehandle = urllib.urlopen(http)
+ for lines in filehandle.readlines():
+ str(lines)
+ pfile.write(lines)
+
+urlOpen(web,filename)

0 comments on commit 30a8c80

Please sign in to comment.