Esempio n. 1
0
 def get_urls(self):
     print('\tSearching Trello Urls..')
     try:
         rawres = myparser.parser(self.totalresults, "trello.com")
         trello_urls = rawres.urls()
         visited = set()
         for url in trello_urls:
             # iterate through trello urls gathered and visit them, append text to totalresults
             if url not in visited:  # make sure visiting unique urls
                 visited.add(url)
                 self.totalresults += requests.get(url=url, headers={'User-Agent': googleUA}).text
         rawres = myparser.parser(self.totalresults, self.word)
         return rawres.hostnames(), trello_urls
     except Exception as e:
         print("Error occurred: " + str(e))
Esempio n. 2
0
 def get_people(self):
     rawres = myparser.parser(self.totalresults, self.word)
     return rawres.people_linkedin()
Esempio n. 3
0
 def get_hostnames(self):
     rawres = myparser.parser(self.totalresults, self.word)
     return rawres.hostnames()
Esempio n. 4
0
 def get_set(self):
     rawres = myparser.parser(self.totalresults, list)
     return rawres.set()
Esempio n. 5
0
 def get_files(self):
     rawres = myparser.parser(self.totalresults, self.word)
     return rawres.fileurls(self.files)
Esempio n. 6
0
 def get_emails(self):
     rawres = myparser.parser(self.totalresults, self.word)
     return rawres.emails()
Esempio n. 7
0
 def get_people(self):
     rawres = myparser.parser(self.totalresults, self.word)
     return rawres.people_twitter()
Esempio n. 8
0
 def get_profiles(self):
     rawres = myparser.parser(self.totalresults, self.word)
     return rawres.profiles()
Esempio n. 9
0
 def test_emails(self):
     word = 'domain.com'
     results = '@domain.com***a@domain***banotherdomain.com***[email protected]***[email protected]***'
     p = myparser.parser(results, word)
     emails = sorted(p.emails())
     self.assertEqual(emails, ['*****@*****.**', '*****@*****.**'])