import random wm_api_keys = ['ktp6hyv2tnww9smsqncsfds5', "4z75bfrthgs7msdfphjmmsdr", "gpb35j3vu2vm9tp3kea6bz8m", "hu7s9v7d3rxeh9x2r77e9kpf", "x9ggsqbshcgp7jmpvz6kv9rc", "k8e9mufq2pmsyrfqjf8nzmct"] approved_keys = ['123', '789654'] wm_api_key = random.choice(wm_api_keys) wm_item_api_base_url = "http://api.walmartlabs.com/v1/items/{0}?format=json&apiKey={1}" # wm_item_api_base_url = "http://api.walmartlabs.com/v1/search?format=json&apiKey={0}&query=" #.format(wm_api_key) wm_stores_api_base_url = "http://api.walmartlabs.com/v1/stores?format=json&apiKey={0}&" #.format(wm_api_key) local_base_url = "http://search.mobile.walmart.com/search?" contest_ids = ["45031001"] high_color = "#26b221" mid_color = "#c96830" low_color = "#c93030" alert_color = "#e21212" missing_active = "false" max_item_name_length = 30 stripeApiKey = "sk_live_BAmA7dcEikuwPfuz0FcnWWK2" import random # # # START MISCELLANEOUS SETTINGS # # # date_format = "%m/%d/%Y" log_file = "log.txt" # # # END MISC SETTINGS # # # START MYSQL CONNECTION INFORMATION # # # # Local Server # loc_server = "localhost" loc_server = "149.56.248.136" loc_user = "wmCheck" loc_pass = "EJ9JvWqDZfvH7tuV" loc_db = "walmartChecker" # Remote Server rem_server = "149.56.248.136" rem_user = "wmCheck" rem_pass = "EJ9JvWqDZfvH7tuV" rem_db = "walmartChecker" # Wordpress Server wp_server = "64.91.237.137" wp_user = "thriftybird_walmart" wp_pass = "STQ}OpR6tt;S" wp_db = "thriftybird_wp811" # SQL Server sql_server = "149.56.248.136" sql_user = "thriftyBird" sql_pass = "sJMrsbH3dfQ8QsSH" sql_db = "ThriftyBird" # AWS Server aws_server = "ec2-54-149-94-214.us-west-2.compute.amazonaws.com" aws_user = 'thriftybird' aws_pass = "4Sbwithu!" aws_db = "ThriftyBird" # # # END MYSQL CONNECTION INFORMATION # # # # # # START HTTP CONNECTION SETTINGS # # # user_agent_strings = ["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36 Edge/12.246", "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.1", "Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20121202 Firefox/17.0 Iceweasel/17.0.1", "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko", "Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko", "Mozilla/5.0 (X11; Linux) KHTML/4.9.1 (like Gecko) Konqueror/4.9", "Mozilla/5.0 (X11; Linux 3.5.4-1-ARCH i686; es) KHTML/4.9.1 (like Gecko) Konqueror/4.9", "Mozilla/5.0 (X11) KHTML/4.9.1 (like Gecko) Konqueror/4.9", "Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16", ] rand_user_agent = user_agent_strings[random.randrange(0, len(user_agent_strings))] # # # END HTTP CONNECTION SETTINGS # # # # # # START EMAIL SETTINGS # # # email_server = "smtp.gmail.com" email_server_port = 465 email_user = "todaysdeals@thriftybird.com" email_pass = "cpgiunkugaknptrf" # # # END EMAIL SETTINGS # # # # # # START EMAIL CONFIGURATION # # # email_body_head = """
""" email_body_foot = """
Unsubscribe from ThriftyBird.com
""" # # # END EMAIL CONFIGURATION # # # START AWS CONFIGURATIONS # # # default_image_id = 'ami-57aebd2e' # # # END AWS CONFIGURATIONS # # # # # # START GITHUB CONFIGURATIONS # # # git_ssh_host = "git@github.com:bgarr313/ThriftyBirdTEST.git" git_directory = "ThriftyBirdTEST" # # # START SCANNING SETTINGS # # # max_threads = 897 scan_threshold = 100 time_threshold = 5400 # # # START WP SETTINGS # # # api_conf = "dqawndk" base_url = "https://thriftybird.com" new_db_host = "localhost" new_db = "yeswecos_inventory_search" new_db_user = "yeswecos_inv_api" new_db_pass = "t#x6!pt7H6f$" max_store_results = 12