本文整理汇总了Python中myparser.parser函数的典型用法代码示例。如果您正苦于以下问题:Python parser函数的具体用法?Python parser怎么用?Python parser使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了parser函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: main
def main(argv):
lexemes = []
x = 1
try:
opts, args = getopt.getopt(argv, "h", ["help"])
except getopt.GetoptError:
usage()
sys.exit(1)
for opt, arg in opts:
if opt in ("-h", "--help"):
usage()
sys.exit()
for arg in args:
try:
with open(arg, 'r') as f:
#contents.append(f.read())
readin = f.read()
myparser.parser(readin)
except IOError:
print "File %s not found!" % arg
sys.exit(1)
示例2: get_results
def get_results(self):
raw_results=myparser.parser(self.total_results,self.word)
results = search_results()
results.emails = raw_results.emails()
results.hostnames = raw_results.hostnames()
return results
示例3: get_files
def get_files(self):
rawres=myparser.parser(self.totalresults,self.word)
return rawres.fileurls(self.files)
示例4: get_hostnames
def get_hostnames(self):
rawres=myparser.parser(self.totalresults,self.word)
return rawres.hostnames()
示例5: get_emails
def get_emails(self):
rawres=myparser.parser(self.totalresults,self.word)
return rawres.emails()
示例6: get_people
def get_people(self):
rawres=myparser.parser(self.totalresults,self.word)
return rawres.people_linkedin()
示例7: get_set
def get_set(self):
rawres = myparser.parser(self.totalresults, list)
return rawres.set()
示例8: getHosts
def getHosts(self,domain):
em=myparser.parser(self.text,domain)
return em.hostnames()
示例9: getEmails
def getEmails(text):
em=myparser.parser(text)
print em.emails()
示例10: getURLS
def getURLS(text):
em=myparser.parser(text)
print em.fileurls()
示例11: getPeople_linkedin
def getPeople_linkedin(text):
em=myparser.parser(text)
print em.people_linkedin()
示例12: getHostnames
def getHostnames(text):
em=myparser.parser(text)
print em.hostnames()
示例13: get_people
def get_people(self):
rawres = myparser.parser(self.totalresults, self.word)
return rawres.people_googleplus()
示例14: get_results
def get_results(self):
raw_results=myparser.parser(self.total_results,self.word)
results = search_results()
results.people = raw_results.people_123people()
return results
示例15: get_profiles
def get_profiles(self):
rawres=myparser.parser(self.totalresults,self.word)
return rawres.profiles()