-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
29 lines (23 loc) · 783 Bytes
/
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
import asyncio
import scrapers.zeroaq as zeroaq
import scrapers.asworld as asworld
import scrapers.valhala as valhala
async def main():
print("(1) Scrape zeroaq.com")
print("(2) Scrape as-world.org")
print("(3) Scrape valhala.org")
choice = input("> ")
if "1" in choice:
await zeroaq.scrape_no_requirements_quests()
elif "2" in choice:
await asworld.scrape_no_requirements_quests()
elif "3" in choice:
await valhala.scrape_no_requirements_quests()
else:
print("Invalid input")
input("Press enter to exit...")
return
print("Done!")
if __name__ == "__main__":
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
asyncio.get_event_loop().run_until_complete(main())