
Re asserting connectivity with one Python script (scraping data).
- or -
Post a project like this2401
$
- Posted:
- Proposals: 4
- Remote
- #2314801
- Completed
Description
Experience Level: Entry
Essentials .......... Python Programmer with experience in web scraping, pandas, XML
I have a script in Python which needs moderating.
It is programmed for scraping which is first part of a two-part process . The data collected is dropped into a folder for each individual day (ongoing). The files in each folder have been converted to Excel .csv files through the process.
The script has suddenly been unable to complete the process of collection ( last days). This is also affecting another script that relies on connectivity of the first to complete its own tasks
My first target is to have the main script reconnect to the site it is programmed to collect from or solve the malfunction if not connectivity) and collect data needed from those sites.
Below is a CMD result at start of process.
/racecards/299/moonee-valley/2019-03-22/725732
[10:00]
Traceback (most recent call last):
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 521, in process_event
raise IndexError
IndexError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 624, in
racingpost()
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 617, in racingpost
base + event[0].replace('results', 'racecards'), event[1])]
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 524, in process_event
if data['Course'].endswith('(AW)') or tree.xpath('//title/text()')[0].split('|')[0].strip().endswith('(AW)'):
KeyError: 'Course'
None
Press any key to exit...in relation to
I have a script in Python which needs moderating.
It is programmed for scraping which is first part of a two-part process . The data collected is dropped into a folder for each individual day (ongoing). The files in each folder have been converted to Excel .csv files through the process.
The script has suddenly been unable to complete the process of collection ( last days). This is also affecting another script that relies on connectivity of the first to complete its own tasks
My first target is to have the main script reconnect to the site it is programmed to collect from or solve the malfunction if not connectivity) and collect data needed from those sites.
Below is a CMD result at start of process.
/racecards/299/moonee-valley/2019-03-22/725732
[10:00]
Traceback (most recent call last):
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 521, in process_event
raise IndexError
IndexError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 624, in
racingpost()
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 617, in racingpost
base + event[0].replace('results', 'racecards'), event[1])]
File "C:\Users\User1\Desktop\betfair_my_keyv099 (2)\betfair_my_keyv099\racingpost.py", line 524, in process_event
if data['Course'].endswith('(AW)') or tree.xpath('//title/text()')[0].split('|')[0].strip().endswith('(AW)'):
KeyError: 'Course'
None
Press any key to exit...in relation to
Alan N.
100% (21)Projects Completed
19
Freelancers worked with
7
Projects awarded
87%
Last project
5 Nov 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies