Advertisement
milo2012

Patch for Metagoofil

Jan 8th, 2012
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. *** parser.py 2012-01-08 12:00:38.000000000 -0500
  2. --- parser.py 2012-01-08 12:35:35.000000000 -0500
  3. ***************
  4. *** 43,52 ****
  5. self.temp = reg_urls.findall(self.results)
  6. allurls=self.unique()
  7. for x in allurls:
  8. ! if x.count('webcache') or x.count('google.com') or x.count('search?'):
  9. ! pass
  10. ! else:
  11. urls.append(x)
  12. return urls
  13.  
  14. def people_linkedin(self):
  15. --- 43,52 ----
  16. self.temp = reg_urls.findall(self.results)
  17. allurls=self.unique()
  18. for x in allurls:
  19. ! if x.endswith('doc') or x.endswith('pdf') or x.endswith('xls') or x.endswith('ppt') or x.endswith('odp') or x.endswith('ods') or x.endswith('docx') or x.endswith('xlsx') or x.endswith('pptx'):
  20. urls.append(x)
  21. + else:
  22. + pass
  23. return urls
  24.  
  25. def people_linkedin(self):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement