I want to get the scrapy project id that zyte generates, is there any other method different to the os.getenv('SCRAPY_JOB')?. This method generates a response in the format "project_id/spider_id/job_id" but I only want the project id, is there a method to extract directly the project id or do I have to use split functions to get it?
0 Votes
Bala Ravichandran posted
almost 2 years ago
AdminBest Answer
This is the default response format "project_id/spider_id/job_id". Yes, you can split functions to get the project ID.
1 Votes
1 Comments
Bala Ravichandranposted
almost 2 years ago
AdminAnswer
This is the default response format "project_id/spider_id/job_id". Yes, you can split functions to get the project ID.
I want to get the scrapy project id that zyte generates, is there any other method different to the os.getenv('SCRAPY_JOB')?. This method generates a response in the format "project_id/spider_id/job_id" but I only want the project id, is there a method to extract directly the project id or do I have to use split functions to get it?
0 Votes
Bala Ravichandran posted almost 2 years ago Admin Best Answer
This is the default response format "project_id/spider_id/job_id". Yes, you can split functions to get the project ID.
1 Votes
1 Comments
Bala Ravichandran posted almost 2 years ago Admin Answer
This is the default response format "project_id/spider_id/job_id". Yes, you can split functions to get the project ID.
1 Votes
Login to post a comment