Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Set up a list of transport types to skip
- skip_list = ["1582", "1583", "1584", "1585", "1586", "1587", "1588", "1589", "1590", "1591", "1592", "1593", "1594", "1596"]
- # Now we loop through each value
- for option in option_tags:
- opt_value = option['value'].strip()
- for skip_me in skip_list:
- if opt_value == skip_me:
- print "NOT doing %s" % opt_value
- break
- else:
- continue
- ttype_code_name = []
- ttype_code_name.append(opt_value)
- ttype_code_name.append(option.contents[0].strip())
- do_search(ttype_code_name)
Advertisement
Add Comment
Please, Sign In to add comment