Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. PICKLE_FILENAME_INSTRUCTION_IDS = 'pickled_instruction_ids.txt'
  2.  
  3. def compare_instruction_id_list_with_baseline(baselineidspicklefile):
  4. baseline_ids = load_pickled_ids(baselineidspicklefile)
  5. current_main_url_content = get_page_content(main_url_test)
  6. root = lh.fromstring(current_main_url_content)
  7. current_ids = get_instruction_ids(root)
  8. diff = [id for id in current_ids if id not in baseline_ids]
  9. return diff
  10.  
  11. response = urllib2.urlopen(url)
  12. content = response.read()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement