Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getChildURLs(responseData):
- retVal = []
- if type(responseData['source_type']) is str and responseData['source_type'].split(';')[0] == 'text/html':
- for frameType in ['frame', 'iframe']:
- for frame in sqgHtml.getTags(frameType, doc):
- if 'src' in dict(frame.attrib) and frame.attrib['src'] != '':
- src_path = re.sub("\'[a-zA-Z0-9 +]+\'", "", frame.attrib['src'] )
- retVal += [sqgHtml.checkAbsoluteLink(src_path, responseData['source_url'])]
- return retVal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement