Skip to content
New issue

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

Cannot get spider settings #114

Open
arimbr opened this issue Mar 25, 2019 · 1 comment
Open

Cannot get spider settings #114

arimbr opened this issue Mar 25, 2019 · 1 comment

Comments

@arimbr
Copy link

arimbr commented Mar 25, 2019

I can set specific spider settings in the Scrapinghub UI but cannot get them with this library.

I use the spider settings to store some keys that need to match a database key, that are then used while loading the scraped data in an ETL.

I was expecting something like:

spider = project.spiders.get('myspider')
spider.settings()

or

spider = project.spiders.get('myspider')
spider.metadata.get('spider_settings')

Related issues:
Issue #84 was about accessing spider settings from the job that was possible through job.metadata.get('job_settings')

@vshlapakov
Copy link
Contributor

Yes, you can't do that now, it's not supported. There's some internal API for getting the settings, but it's unstable and unmaintained. We have plans to rework and unify existing API later this year: when it's ready, we'll update the python bindings correspondingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants