Skip to content

Commit

Permalink
remove beruang at koltiva
Browse files Browse the repository at this point in the history
  • Loading branch information
ceroberoz committed Sep 13, 2024
1 parent 6217901 commit 9b9f445
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions freya/spiders/koltiva.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,20 @@ def __init__(self, *args, **kwargs):

def start_requests(self):
headers = {
'accept': 'application/json, text/plain, */*',
'authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJlbWFpbCI6InBzYW5qYXlhLndvcmtAZ21haWwuY29tIiwiaWF0IjoxNzI2MTI5NTIwfQ.4NDbf50RCpgcpQ8tz2oPBULtom0o-A5JgJOjDOHXtIY',
'origin': 'https://career.koltiva.com',
'user-agent': 'Mozilla/5.0 (X11; Linux aarch64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.188 Safari/537.36 CrKey/1.54.250320'
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:130.0) Gecko/20100101 Firefox/130.0',
'Accept': 'application/json, text/plain, */*',
'Accept-Language': 'en-US,en;q=0.5',
'Accept-Encoding': 'gzip, deflate, br, zstd',
'Origin': 'https://career.koltiva.com',
'Connection': 'keep-alive',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'cross-site',
'DNT': '1',
'Sec-GPC': '1',
'Pragma': 'no-cache',
'Cache-Control': 'no-cache',
'TE': 'trailers'
}
yield scrapy.Request(self.API_URL, headers=headers, callback=self.parse)

Expand Down

0 comments on commit 9b9f445

Please sign in to comment.