-
Notifications
You must be signed in to change notification settings - Fork 0
/
pricempireCALCULATOR.py
33 lines (25 loc) · 1.07 KB
/
pricempireCALCULATOR.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
import webbrowser
def generate_links(base_url, skin_cost, num_variants):
links = []
# Generate links with different variants of skin cost
for i in range(2, num_variants + 1):
modified_url = base_url.replace('COST', str(skin_cost / i))
links.append(modified_url)
return links
def main():
try:
# Request skin cost and number of variants from the user
skin_cost = float(input("Enter the skin cost: "))
num_variants = int(input("Enter the number of variants: "))
except ValueError:
print("Please enter valid numeric values.")
return
# Base URL for price comparison
base_url = "https://pricempire.com/comparison?priceFrom=0.3&priceTo=COST&compareToFee=&sort=profit:DESC&steamVolume=15&priceDays=120&qtyFrom=1&qtyTo=10&minRoi=0&maxRoi=1000&liquidity=50"
# Generate a list of links
links = generate_links(base_url, skin_cost, num_variants)
# Open the links in the browser
for link in links:
webbrowser.open(link)
if __name__ == "__main__":
main()