wip: create webapp

This commit is contained in:
Jayden Pyles
2024-07-06 11:56:05 -05:00
parent dd1923d9f1
commit d66a1fbacf
13 changed files with 1981 additions and 246 deletions

View File

@@ -1,6 +1,17 @@
def main():
print("Hello, World!")
# STL
import asyncio
# LOCAL
from api.backend.scraping import scrape
async def main():
url = "https://darksouls3.wiki.fextralife.com/Dark+Souls+3"
xpaths = [".//h3[@class='bonfire']", ".//div[@class='comment']"]
scraped = await scrape(url, xpaths)
print(scraped)
if __name__ == "__main__":
main()
asyncio.run(main())