mirror of
https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
synced 2025-06-29 19:53:57 +02:00
Compare commits
7 Commits
c53125479e
...
master
Author | SHA1 | Date | |
---|---|---|---|
5e5f7f7407 | |||
0cc42823ff | |||
56c858fa90 | |||
adf91ac8f0 | |||
2721c76686 | |||
45ea72a354 | |||
18b35f6f68 |
@ -1,5 +1,5 @@
|
|||||||
FROM python:3.10
|
FROM python:3.10
|
||||||
ENV DEBIAN_FRONTEND noninteractive
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
|
||||||
# Initial apt install
|
# Initial apt install
|
||||||
|
50
V6.py
50
V6.py
@ -447,17 +447,59 @@ def explore_on_bing(activity: str, config: Config):
|
|||||||
search_bing(f"météo {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]}")
|
search_bing(f"météo {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]}")
|
||||||
elif "packagetracking" in activity:
|
elif "packagetracking" in activity:
|
||||||
driver.get("https://www.bing.com/?setmkt=en-US&setlang=en-US")
|
driver.get("https://www.bing.com/?setmkt=en-US&setlang=en-US")
|
||||||
search_bing(f"{['fedex', 'UPS', '']} package tracking")
|
search_bing(f"{['fedex', 'UPS'][randint(0, 1)]} package tracking")
|
||||||
elif "hotel" in activity:
|
elif "hotel" in activity:
|
||||||
search_bing(f" {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]}")
|
search_bing(f" {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]}")
|
||||||
elif "health" in activity:
|
elif "health" in activity:
|
||||||
search_bing(f"{['toux', 'douleur dos', 'nez qui coule', 'mal au genoux', 'otite'][randint(0, 4)]} carte")
|
search_bing(f"{['toux', 'douleur dos', 'nez qui coule', 'mal au genoux', 'otite'][randint(0, 4)]}")
|
||||||
elif "news" in activity:
|
elif "news" in activity:
|
||||||
search_bing(["actualités", "news"][randint(0, 1)])
|
search_bing(["actualités", "news"][randint(0, 1)])
|
||||||
elif "jobs" in activity:
|
elif "jobs" in activity:
|
||||||
search_bing("jobs")
|
search_bing("jobs")
|
||||||
elif "realestate" in activity:
|
elif "realestate" in activity:
|
||||||
search_bing(f"appartement à louer {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]} carte")
|
search_bing(f"appartement à louer {['Paris', 'Nice', 'Marseille', 'Bordeaux', 'Lyon'][randint(0, 4)]}")
|
||||||
|
elif "financemarket" in activity:
|
||||||
|
search_bing(
|
||||||
|
f"cours action {['AIR LIQUIDE', 'Airbus', 'BNP Paribas', 'Michelin', 'Stellantis', 'Vinci'][randint(0, 5)]}")
|
||||||
|
elif "sports" in activity:
|
||||||
|
equipes = random.sample([
|
||||||
|
"Toulon", "toulouse",
|
||||||
|
"stade Rochelais", "castres",
|
||||||
|
"clermont", "perpignan",
|
||||||
|
"aviron bayonnais", "vannes"
|
||||||
|
], k=2)
|
||||||
|
search_bing(f"{['score', 'résultats'][randint(0, 1)]} rugby {equipes[0]} {equipes[1]}")
|
||||||
|
elif "videogames" in activity:
|
||||||
|
search_bing(random.choice([
|
||||||
|
"Minecraft", "GTA V",
|
||||||
|
"Tetris", "PUBG",
|
||||||
|
"Mario Kart 8",
|
||||||
|
"Red Dead Redemption II",
|
||||||
|
"Terraria",
|
||||||
|
"The Witcher",
|
||||||
|
"Animal Crossing",
|
||||||
|
"Pokémon rouge & bleu",
|
||||||
|
"Super Mario Bros",
|
||||||
|
"The legend of Zelda BOTW",
|
||||||
|
"Call of Duty Modern Warfare",
|
||||||
|
"The Witcher III"
|
||||||
|
]))
|
||||||
|
elif "dictionary" in activity:
|
||||||
|
search_bing(f"définition {config.wordlist.get_word()}")
|
||||||
|
elif "election" in activity or "timezonedates" in activity:
|
||||||
|
#! I don't understand the name of "timezonedates" but this seems to be the same activity
|
||||||
|
state = random.choice([
|
||||||
|
"Alaska", "Alabama", "Arkansas", "American Samoa", "Arizona", "California", "Colorado",
|
||||||
|
"Connecticut", "District ", "of Columbia", "Delaware", "Florida", "Georgia", "Guam",
|
||||||
|
"Hawaii", "Iowa", "Idaho", "Illinois", "Indiana", "Kansas", "Kentucky", "Louisiana",
|
||||||
|
"Massachusetts", "Maryland", "Maine", "Michigan", "Minnesota", "Missouri", "Mississippi",
|
||||||
|
"Montana", "North Carolina", "North Dakota", "Nebraska", "New Hampshire", "New Jersey",
|
||||||
|
"New Mexico", "Nevada", "New York", "Ohio", "Oklahoma", "Oregon", "Pennsylvania",
|
||||||
|
"Puerto Rico", "Rhode Island", "South Carolina", "South Dakota", "Tennessee", "Texas",
|
||||||
|
"Utah", "Virginia", "Virgin Islands", "Vermont", "Washington", "Wisconsin",
|
||||||
|
"West Virginia", "Wyoming"
|
||||||
|
])
|
||||||
|
search_bing(f"governor candidates {state} 2024")
|
||||||
else:
|
else:
|
||||||
log_error(f"Explore on bing: {activity} not found.")
|
log_error(f"Explore on bing: {activity} not found.")
|
||||||
|
|
||||||
@ -523,6 +565,8 @@ def try_play(nom="unknown", activity=""):
|
|||||||
info(f"Explore on bing: {activity}")
|
info(f"Explore on bing: {activity}")
|
||||||
explore_on_bing(activity, config)
|
explore_on_bing(activity, config)
|
||||||
custom_sleep(uniform(3, 5))
|
custom_sleep(uniform(3, 5))
|
||||||
|
elif "Optimisez votre sécurité avec Microsoft" in driver.page_source:
|
||||||
|
info("Still not paying Office 365 ?")
|
||||||
else:
|
else:
|
||||||
info(f"Nothing obvious to do on page `{nom}`.")
|
info(f"Nothing obvious to do on page `{nom}`.")
|
||||||
custom_sleep(uniform(3, 5))
|
custom_sleep(uniform(3, 5))
|
||||||
|
Reference in New Issue
Block a user