YoungJules

Untitled

Jul 27th, 2012
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1.     # Set up a list of transport types to skip
  2.     skip_list = ["1582", "1583", "1584", "1585", "1586", "1587", "1588", "1589", "1590", "1591", "1592", "1593", "1594", "1596"]
  3.  
  4.     # Now we loop through each value   
  5.     for option in option_tags:
  6.         opt_value = option['value'].strip()
  7.         for skip_me in skip_list:
  8.             if opt_value == skip_me:
  9.                 print "NOT doing %s" % opt_value
  10.                 break
  11.         else:
  12.             continue
  13.         ttype_code_name = []
  14.         ttype_code_name.append(opt_value)
  15.         ttype_code_name.append(option.contents[0].strip())
  16.         do_search(ttype_code_name)
Advertisement
Add Comment
Please, Sign In to add comment