Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PICKLE_FILENAME_INSTRUCTION_IDS = 'pickled_instruction_ids.txt'
- def compare_instruction_id_list_with_baseline(baselineidspicklefile):
- baseline_ids = load_pickled_ids(baselineidspicklefile)
- current_main_url_content = get_page_content(main_url_test)
- root = lh.fromstring(current_main_url_content)
- current_ids = get_instruction_ids(root)
- diff = [id for id in current_ids if id not in baseline_ids]
- return diff
- response = urllib2.urlopen(url)
- content = response.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement