mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-12-15 04:05:50 +00:00
wip: create webapp
This commit is contained in:
17
ipython.py
17
ipython.py
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user