We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
By integrating custom scraping task _request_scrape_data into a class in this way
_request_scrape_data
class RequestCrawlasaurus(): def __init__(self, start_url=""): self.start_url= start_url @request( output=None, create_error_logs=False, raise_exception=True, parallel=3, ) def _request_scrape_data(self, request: AntiDetectDriver, link): response = request.get(link) def crawl(self): urls = self._request_scrape_data(link=self.start_url)
I got this error: "RequestCrawlasaurus._request_scrape_data() missing 1 required positional argument: 'link'"
"RequestCrawlasaurus._request_scrape_data() missing 1 required positional argument: 'link'"
Is it possible to embed the custom scraping task _request scrape data into a class? If yes, how?
_request scrape data
The text was updated successfully, but these errors were encountered:
Make it static, and remove self from the function
self
Sorry, something went wrong.
No branches or pull requests
By integrating custom scraping task
_request_scrape_data
into a class in this wayI got this error:
"RequestCrawlasaurus._request_scrape_data() missing 1 required positional argument: 'link'"
Is it possible to embed the custom scraping task
_request scrape data
into a class?If yes, how?
The text was updated successfully, but these errors were encountered: