Skip to content

Commit

Permalink
revision 3 delay in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
mknithin committed Feb 18, 2016
1 parent 24cf333 commit f4f58b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion europage.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get_company_from_google(self,company_list):
#loc_list=['"MCFIVA (THAILAND) CO.,LTD."','"MIR" INTERGOVERNMENTAL TV AND RADIO.']
for cmpn in company_list:
print "--------------------------------------------------------"
print "Google Search for : %d.%s(track:%d)" %(cmpn_no,cmpn,(self.start_record+(cmpn_no-1)))
print "Google Search for : %d.%s(track:%d)" %(cmpn_no,cmpn,(self.start_record))
query = urllib.urlencode({'q': cmpn.encode("utf-8")})
url = 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&%s' % query
search_response = urllib.urlopen(url)
Expand All @@ -75,6 +75,7 @@ def get_company_from_google(self,company_list):
if ("imdb" in new_url or "facebook" in new_url or "youtube" in new_url or "linkedin" in new_url or "wikipedia" in new_url or "europages" in new_url):
cmpn_no+=1
print 'filter out '
time.sleep(30)
continue
link.append(new_url)
#link=(h['url']).encode("utf-8")
Expand Down

0 comments on commit f4f58b9

Please sign in to comment.