What is Scraptor?
Scraptor is a micro scraping framework in development for python. Contrary to other scraping frameworks that enforce a file structure, scraptor simplifies boilerplate code while leaving up to the developer a lot of implementation freedom. Check out how to scrape twitter moment's in 6 lines of code!
from scraptor import *
@field(".MomentCapsuleDetails-title", name="title")
def y(x): return x
@field(".MomentMediaItem-entity--image", name="imagesURL", attr = "src")
def y(x): return x
run(url = "https://twitter.com/i/moments", nodeOfType = ".MomentCapsuleSummary")
pip install scraptor