Both the URLs will not be available in the database. Check
On Apr 4, 2:01 am, Mother <xenmot...@gmail.com> wrote:
> I can't get this to work on python 2.4.
>
> >>> l = Lookup(db_path)
> >>> l.lookup_by_url("http://www.mozilla.com/firefox/its-a-trap.html")
> >>> l.lookup_by_url("http://www.google.com/tools/firefox/safebrowsing/phish-o-rama.html")
http://code.google.com/apis/safebrowsing/developers_guide.html#PerformingLookups
for more details.
Sufficient to work with safebrowsing python.
> I've got hashlib for 2.4. I've got pysqlite2.
Check some sites available in this thread that i have mentioned.
> Creating and downloading the safebrowsing works, but it won't report
> anything as M.
This decision is totally up to you. I don't think it will make a lot
> Maybe I should just get 2.5...
of difference.
> I can't get this to work on python 2.4.
>
>>>> l = Lookup(db_path)
>>>> l.lookup_by_url("http://www.mozilla.com/firefox/its-a-trap.html")
>>>> l.lookup_by_url("http://www.google.com/tools/firefox/safebrowsing/phish-o-rama.html
>>>> ")
>
> Creating and downloading the safebrowsing works, but it won't report
> anything as M.
Those test URLs do not actually exist in Google's database. They are
only useful for verifying the status of phishing protection in
Firefox, and are manually inserted in the client-side local database
by Firefox's url-classifier component:
See <http://mxr.mozilla.org/firefox/source/browser/components/safebrowsing/content/malware-warden.js#59
>.
The latter URL existed to test phishing protection in Firefox when it
was formerly provided by a Google supplied extension. Now that the
code has been integrated directly into the browser, the first URL is
what they currently use.
Having said that, you'll have better luck testing lookup effectiveness
by using some verified URLs from http://phishtank.com.
Hope that helps,
Sean.