Closed damian0604 closed 6 years ago
When trying to set the 'maxpages' argument for a non-rss scraper I get the error: 'get() got multiple values for argument 'maxpages' Seems to be an issue in scraper_class..
I think (after trying around a bit, it's maybe also too late and I might be too tired) that the way to go is to fix change the scraper itself (e.g., the scrapers/cda_scraper.py as follows:
- def get(self, maxpages=1):
+ def get(self, save, maxpages, *args, **kwargs):
Yes, that solves the problem, I now changed the scrapers. We do not have default values anymore but if the necessary arguments are not supplied (e.g. maxpages) the scraper does not run but gives an error asking to supply the arguments.
Thanks a lot! For future reference, here link to an example: https://stackoverflow.com/questions/21764770/typeerror-got-multiple-values-for-argument#21765286
HERE IT IS! The major refactoring of the whole code. It will probably take some time to rest....