Train
It takes two URLs of 2 similiar pages to train the scraper.
status: True or False
id: id of the scraper
Here is the code:-
- scraper.train(link1, link2)
- Parameters
link1 (str) – First link on which scraper to run
link2 (str) – Similiar link to link1
- Returns
{“status”: True, “id”: “Adfef343JDJSDJ”}
- Return type
dict