> --
> You received this message because you are subscribed to the Google Groups
> "Google Safe Browsing API" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-safe-browsing-api/-/v88c-SsVfJoJ.
> To post to this group, send email to
> google-safe-browsing-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-safe-browsing-api+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-safe-browsing-api?hl=en.
I've checked out client.py and I've seen its usage. Just for test I performed a client-side lookups of URLs, such: urls = ["http://ianfette.org/", "www.google.com.br"] client.CheckForUrl(myapikey,urls)
and I recived this message: INFO:root:Finished update number 1, next delay: 1818 INFO:root:Waiting to complete updates... INFO:root:Waiting 1818 seconds
and after a while other message: INFO:root:Finished update number 2, next delay: 1776 INFO:root:Waiting to complete updates... INFO:root:Waiting 1776 seconds
so on.
I suppose that the client.py is performing only the updates but, how can I get the result of the lookups? If it's either phishing, malware, both or none of them. My guess is that it isn't calling function CheckUrl from Client class. Am I wrong?
The way the client works it will update until it's completely up to date
before telling you if you the url you have specified is bad or not. This
can take a while (on the order of hours) if you haven't done this before or
if the database you specified is out of date. If you just want to know if a
few sites are bad or not, using the lookup api (
https://developers.google.com/safe-browsing/lookup_guide) is much easier.
This implementation is more if you want to check very large numbers of urls
or if you don't wish to disclose the urls to Google for privacy reasons.
On Tue, Aug 14, 2012 at 12:52 PM, Diogo <diogo.si...@gastecnologia.com.br>wrote:
> To post to this group, send email to
> google-safe-browsing-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-safe-browsing-api+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-safe-browsing-api?hl=en.
In fact, for now, I just want to check if a few sites are bad or not and I've been performing lookups with this implementation of lookup api: http://pypi.python.org/pypi/Google%20Safe%20Browsing%20v2%20Lookup/ , but it's giving me some errors, it is not, sometimes, "saying" if a site is bad or not, it's "saying" "error" and because of this I thought about using Protocol v2. And in the future I think that I'll check very large numbers, more than 10.000. Any tip or trick while using Protocol v2?
<diogo.si...@gastecnologia.com.br> wrote:
> In fact, for now, I just want to check if a few sites are bad or not and
> I've been performing lookups with this implementation of lookup api:
> http://pypi.python.org/pypi/Google%20Safe%20Browsing%20v2%20Lookup/ , but
> it's giving me some errors, it is not, sometimes, "saying" if a site is bad
> or not, it's "saying" "error" and because of this I thought about using
> Protocol v2. And in the future I think that I'll check very large numbers,
> more than 10.000. Any tip or trick while using Protocol v2?
> To post to this group, send email to
> google-safe-browsing-api@googlegroups.com.
> To unsubscribe from this group, send email to
> google-safe-browsing-api+unsubscribe@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-safe-browsing-api?hl=en.
I've been working with your Python module. The early going was a bit frustrating but I finally got it working. One thing that helped was to add the debug flag to see what the actual URLs being POST'd were.
return(SafebrowsinglookupClient(API_KEY,debug=1))
That showed me that I was passing in URLs that were then being modified in a way that caused them to be malformed.
However, I'm now stumped by something else: how can I make it proxy aware? My code works when I am not behind a proxy, but when I am behind a proxy it times out.
> On Wed, Aug 15, 2012 at 11:56 AM, Diogo > <diogo...@gastecnologia.com.br <javascript:>> wrote: > > In fact, for now, I just want to check if a few sites are bad or not and > > I've been performing lookups with this implementation of lookup api: > > http://pypi.python.org/pypi/Google%20Safe%20Browsing%20v2%20Lookup/ , > but > > it's giving me some errors, it is not, sometimes, "saying" if a site is > bad > > or not, it's "saying" "error" and because of this I thought about using > > Protocol v2. And in the future I think that I'll check very large > numbers, > > more than 10.000. Any tip or trick while using Protocol v2?
> > To post to this group, send email to > > google-safe-...@googlegroups.com <javascript:>. > > To unsubscribe from this group, send email to > > google-safe-browsing-api+unsubscribe@googlegroups.com <javascript:>. > > For more options, visit this group at > > http://groups.google.com/group/google-safe-browsing-api?hl=en.