├── Supreme_Log.log ├── requirements.txt ├── Keyword_Demo.mov ├── README.md ├── LICENSE └── Keyword.py /Supreme_Log.log: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests==2.19.1 2 | -------------------------------------------------------------------------------- /Keyword_Demo.mov: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bobbypine/SupremeManualBot/HEAD/Keyword_Demo.mov -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Enter the product keyword when prompted and it will open the product page on your default browser when found. You can start the program prior to 11 AM EST and it'll keep looking until the product is loaded. Typically I run the program at around 10:59:40 and it'll cycle through until the keyword is found. 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 bobbypine 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Keyword.py: -------------------------------------------------------------------------------- 1 | import webbrowser 2 | import json 3 | import requests 4 | import time 5 | import logging 6 | 7 | 8 | def keysearch(key): 9 | logging.basicConfig(level=logging.INFO, filename='Supreme_Log.log', filemode='a', 10 | format = " %(asctime)s %(message)s", 11 | datefmt="%m/%d/%Y %I:%M:%S %p ") 12 | starttime = time.time() 13 | url = 'https://www.supremenewyork.com/mobile_stock.json' 14 | response = requests.get(url=url) 15 | data = json.loads(response.content.decode('utf-8')) 16 | mylist = [] 17 | global mylists 18 | mylists = mylist 19 | for items in data['products_and_categories']: 20 | if items != 'new': 21 | categories = items 22 | for x in categories.split(): 23 | for result in data['products_and_categories']['{}'.format(x)]: 24 | if keyword in result['name'].lower(): 25 | print('Product Found!') 26 | name = result['name'] 27 | id = result['id'] 28 | if str(id)[0] == '3': 29 | region = 'Supreme EU' 30 | else: 31 | region = 'Supreme US' 32 | cat = result['category_name'] 33 | price = '${}'.format(result['price']*.01) 34 | link = 'https://www.supremenewyork.com/shop/{}/{}'.format(x, id) 35 | mylist.append(id) 36 | print(len(mylist), end=""), 37 | print('.)', end = ""), 38 | print(name,'-',cat, '-', price) 39 | webbrowser.open(link) 40 | print('Product Found at {} and Opened in {:.2f} Seconds'.format(time.strftime("%I:%M:%S"),time.time()-starttime)) 41 | logging.info('{}: {} Found Using "{}" at {} and Opened in {:.2f} Seconds'.format(region, name, keyword, time.strftime("%I:%M:%S"),time.time()-starttime)) 42 | print() 43 | 44 | 45 | if __name__ == "__main__": 46 | keyword = input('Enter Keyword(s), Hit Enter When Ready:').lower() 47 | keylist = keyword.split(",") 48 | print() 49 | 50 | for keyword in keylist: 51 | keysearch(keyword) 52 | 53 | for _ in range(600): 54 | try: 55 | if not mylists: 56 | print('{}: Product Not Found for {}, Will Look Again...'.format(time.strftime("%I:%M:%S"),keyword).title()) 57 | time.sleep(0.25) 58 | keysearch(keyword) 59 | except Exception as e: 60 | print('{}: or Webstore Closed'.format(e)) 61 | print('Program Ended') 62 | print('------------------------------------------------------------------------------------------------------------') 63 | 64 | 65 | --------------------------------------------------------------------------------