-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.py
81 lines (66 loc) · 2.83 KB
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Imports
import webbrowser
import time
# intro
print("")
print("")
print("""
$$$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$\ $$$$$$\ $$$$$$\ $$\ $$\ $$$$$$$$\\
$$ __$$\ $$ __$$\ $$$\ $$$ |$$ __$$\ $$ __$$\ $$ __$$\ $$$\ $$$ |$$ _____|
$$ | $$ |$$ / \__|$$$$\ $$$$ |$$ | $$ | $$ / \__|$$ / $$ |$$$$\ $$$$ |$$ |
$$$$$$$ |$$ | $$\$$\$$ $$ |$$$$$$$ | $$ |$$$$\ $$$$$$$$ |$$\$$\$$ $$ |$$$$$\\
$$ ____/ $$ | $$ \$$$ $$ |$$ __$$< $$ |\_$$ |$$ __$$ |$$ \$$$ $$ |$$ __|
$$ | $$ | $$\ $$ |\$ /$$ |$$ | $$ | $$ | $$ |$$ | $$ |$$ |\$ /$$ |$$ |
$$ | \$$$$$$ |$$ | \_/ $$ |$$ | $$ | \$$$$$$ |$$ | $$ |$$ | \_/ $$ |$$$$$$$$\\
\__| \______/ \__| \__|\__| \__| \______/ \__| \__|\__| \__|\________|
$$$$$$$\ $$\ $$\ $$\ $$\ $$$$$$$$\ $$$$$$$\\
$$ __$$\ $$ __$$\ $$$\ $$ |$$ _____|$$ __$$\\
$$ | $$ |$$ | $$ | \$$\ $$ / $$ | $$ | $$ |
$$$$$$$\ |$$ | $$ | \$$$$ / $$$$$\ $$$$$$$ |
$$ __$$\ $$ | $$ | \$$ / $$ __| $$ __$$<
$$ | $$ |$$ | $$ | $$ | $$ | $$ | $$ |
$$$$$$$ |\$$$$$$ | $$ | $$$$$$$$\ $$ | $$ |
\______/ \__| \________|\__| \__| \__| \__|
""")
print("Version 0.01")
print("")
print("It's nice to have choices!")
print("")
print("For questions, comments, suggestions please visit - ")
print("http://techiephile.tech")
print("")
print("This program will enter your search term on 6 major online game stores and open them in your browser. ")
print("")
# Search again function
def redo():
goagain = raw_input("Do you want to run another search? [y]/[n]: ")
if goagain == "y":
main()
elif goagain == "n":
print("K bye then")
exit()
else:
print("Please choose y or n")
redo()
# Main function
def main():
game = raw_input("Enter a game title to search for? ")
print("Scouring the internet...")
greenmangaming = "https://www.greenmangaming.com/search/" + game
steam = "http://store.steampowered.com/search/?term=" + game
g2a = "https://www.g2a.com/?search=" + game
gog = "https://www.gog.com/games?sort=bestselling&search=" + game + "&page=1"
origin = "https://www.origin.com/usa/en-us/search?searchString=" + game
kinguin = "https://www.kinguin.net/catalogsearch/result/index/?q=" + game
humblebundle = "https://www.humblebundle.com/store/search?sort=bestselling&search=" + game
webbrowser.open_new(greenmangaming)
print("You should see a browser window open now!")
time.sleep(5)
webbrowser.open(steam)
webbrowser.open(g2a)
webbrowser.open(gog)
webbrowser.open(origin)
webbrowser.open(kinguin)
webbrowser.open(humblebundle)
redo()
main()