Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion hepcrawl/spiders/hindawi_spider.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ def __init__(self, source_file=None, *args, **kwargs):
def start_requests(self):
"""Default starting point for scraping shall be the local XML file."""
self.log('Harvest started.', logging.INFO)
yield Request(self.source_file)
headers = {
'User-Agent': 'curl/7.64.1'
}
yield Request(self.source_file, headers=headers)

def parse_node(self, response, node):
self.log('Parsing node...', logging.INFO)
Expand Down