Advertisement
Guest User

Untitled

a guest
Nov 13th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.23 KB | None | 0 0
  1. try:
  2.     import colorama
  3.     from termcolor import *
  4.     import os
  5.     import time  
  6.     import urllib.request
  7.     from time import sleep
  8.     import requests
  9.     from colorama import init
  10.     from bs4 import BeautifulSoup
  11.     from io import StringIO
  12.     import sys
  13.     from goto import with_goto
  14. finally:
  15.     print("Loading...")
  16.     time.sleep(3)
  17.     print("Loaded")
  18.     time.sleep(1)
  19.     os.system('cls')
  20.  
  21. error = "Could not find item, please make sure you typed the name correctly!"
  22. logo = """
  23. ███████╗██████╗ ██████╗     ██████╗ ███████╗ █████╗ ██████╗ ███████╗██████╗
  24. ██╔════╝██╔══██╗╚════██╗    ██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔════╝██╔══██╗
  25. ███████╗██████╔╝ █████╔╝    ██████╔╝█████╗  ███████║██║  ██║█████╗  ██████╔╝
  26. ╚════██║██╔══██╗██╔═══╝     ██╔══██╗██╔══╝  ██╔══██║██║  ██║██╔══╝  ██╔══██╗
  27. ███████║██████╔╝███████╗    ██║  ██║███████╗██║  ██║██████╔╝███████╗██║  ██║
  28. ╚══════╝╚═════╝ ╚══════╝    ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═════╝ ╚══════╝╚═╝  ╚═╝
  29.                                                               By Tyris#0001
  30. """
  31. ItemPrices = ['Max Hammers:100-120m', 'Max Sand Aero:300-400m', 'Max Durendal:150-175m', 'Max Valikaze:250-280m', 'Max Dragonskull Robe:300-350m', 'Max Chaosplate:600-650m',
  32.               'Max Hellreaver:500-550m', 'Max Oblivion:600m', 'Max Req:500-550m', 'Max Cata:450-500m', 'Max Life:500m-550m', 'Max Sus:600-700m', 'Max Oren:400-500m', 'Max Retri:400-450m',
  33.               'Max Kusa:150-175m', 'Max Soul:150-175m', 'Max Faith:150-200m', 'Max Destiny:90-125m', 'Max  Misery:35-45m', 'Max Divine:500-550m', 'Clean Hammers:80-100m', 'Clean Sand Aero:200-250m',
  34.               'Clean Durendal:60-80m', 'Clean Valikaze:120-150m', 'Clean Dragonskull Robe:200-250m', 'Clean Chaosplate:300-350m', 'Clean Hellreaver:300-350m', 'Clean Oblivion:300m', 'Clean Req:325m-350m',
  35.               'Clean Cata:350-425m', 'Clean Life:350-425m', 'Clean Sus:400m-450m', 'Clean Oren:350-425m', 'Clean Retri:250-270m', 'Clean Kusa:65-75m', ]
  36. Item = ItemPrices[0]
  37. print(colored(logo, 'magenta', 'on_blue'))
  38. htmlfile = urllib.request.urlopen("https://pastebin.com/raw/U57PiTZT")
  39. htmltext=htmlfile.read()
  40. print(colored(htmltext, 'green'))
  41. print(colored('Type an Item name here or just some letters..', 'blue'))
  42. while input != 'exit':
  43.     search = input(colored('>> ', 'red'))
  44.     for Item in ItemPrices:
  45.         if Item.find(search) != -1:
  46.             print(colored(Item, 'green'))
  47. else:
  48.     if Item.find(search) == -1:
  49.         print(colored(error, 'red'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement