this article is not working can u give relavent one please
0 Votes
nestorposted
over 6 years ago
Admin
You're welcome. Happy scraping!
0 Votes
R
Ronak Raj Doongarwalposted
over 6 years ago
@nestor Thanks for helping. It worked. Deployed my first spider.
0 Votes
R
Ronak Raj Doongarwalposted
over 6 years ago
Thanks for the quick reply. I'll try and reply
0 Votes
nestorposted
over 6 years ago
AdminAnswer
pkgutil already reads the content. I guess this could work:
data = os.path.join(os.path.dirname(__file__), '../resources/file.json')
1 Votes
R
Ronak Raj Doongarwalposted
over 6 years ago
Thanks I have already tried this solution but didn't worked for me. But certificate funtion doesn't take file contents, it takes filename as parameter. Please suggest something to pass file as parameter.
I have serviceAccountKey.json file in project root directory which I need to refer in this line of code of one of the python script.
but while deployment it fails giving error:
Please help me how to refer to serviceAccountKey.json file in script which need to be deployed in scrapinghub .
NOTE: I also tried using
and
0 Votes
nestor posted over 6 years ago Admin Best Answer
pkgutil already reads the content. I guess this could work:
data = os.path.join(os.path.dirname(__file__), '../resources/file.json')
1 Votes
8 Comments
Sergey Geron posted over 1 year ago Admin
Hi Yeshwanth, this is Sergey Geron, Business Analyst at Zyte.
Thank you for reaching out through our Forum.
We have changed our domain from support.scrapinghub.com to support.zyte.com
Check out the article here - https://support.zyte.com/support/solutions/articles/22000200416-deploying-non-code-files
0 Votes
Yeshwanth Bheempad posted over 1 year ago
this article is not working can u give relavent one please
0 Votes
nestor posted over 6 years ago Admin
You're welcome. Happy scraping!
0 Votes
Ronak Raj Doongarwal posted over 6 years ago
@nestor Thanks for helping. It worked. Deployed my first spider.
0 Votes
Ronak Raj Doongarwal posted over 6 years ago
0 Votes
nestor posted over 6 years ago Admin Answer
pkgutil already reads the content. I guess this could work:
data = os.path.join(os.path.dirname(__file__), '../resources/file.json')
1 Votes
Ronak Raj Doongarwal posted over 6 years ago
0 Votes
nestor posted over 6 years ago Admin
Try: https://support.scrapinghub.com/support/solutions/articles/22000200416-deploying-non-code-files
0 Votes
Login to post a comment