Python script help

2013-07-30 Thread cool1574
Hello, I am looking for a script that will be able to search an online document 
(by giving the script the URL) and find all the downloadable links in the 
document and then download them automatically.
I appreciate your help,
Thank you.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-07-30 Thread cool1574
I know but I think using Python in this situation is good...is that the full 
script?
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-07-30 Thread cool1574
** urlib, urlib2

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-07-30 Thread cool1574
What if I want to use only Python? is that possible? using lib and lib2? 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-07-31 Thread cool1574
Here are some scripts, how do I put them together to create the script I want? 
(to search a online document and download all the links in it)
p.s: can I set a destination folder for the downloads?

urllib.urlopen("http://";)

possible_urls = re.findall(r'\S+:\S+', text)

import urllib2
response = urllib2.urlopen('http://www.example.com/')
html = response.read()
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-08-01 Thread cool1574


I know I should be testing out the script myself but I did, I tried and since I 
am new in python and I work for a security firm that ask me to scan hundreds of 
documents a day for unsafe links (by opening them) I thought writing a script 
will be much easier. I do not know how to combine those three scripts together 
(the ones I wrote in my previous replay) that is why I cam to here for help. 
please help me build a working script that will do the job.
Thanks in advance.
you can contact me at cool1...@gmail.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-08-02 Thread cool1574
I do know some Python programming, I just dont know enough to put together the 
various scripts I need...I would really really appreciate if some one can help 
me with that...
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Python script help

2013-08-04 Thread cool1574
I understand I did not ask the question correctly, but is there any chance you 
can help me put together this code? I know that you all do this for fun and 
enjoy it and that is why I asked you guys instead of asking some one who will 
charge me for a very simple line of code.
I would appreciate it, Thank you.
-- 
http://mail.python.org/mailman/listinfo/python-list