Thank you for your help! I don't mean to spam you but I want to give you as much information as I can. Where do I find the 'command window'? Here's something weird - there are no html files. There were with the first 100 I ran, in fact I think there were html for most of them. None for any of the small ones.
API 49009200210000 - Initially, it didn't work, but it worked when I ran it by itself
Output:API 49009227710000 - This worked - it downloaded 1 reports
Spud Date 06/24/1992
Completion Date 07/26/1992
Formation FRONTIER
Total Depth 12326
Plug Back 12236
IP Oil Bbls 819
IP Gas Mcf 2,174
IP Water Bbls 0
Reservoir Class O
TD Formation FRONTIER
Output:API 49009225760000 - This worked - it downloaded 2 reports
Spud Date 06/27/1965
Completion Date 04/23/1966
Formation MUDDY
Total Depth 16565
Plug Back 0
IP Oil Bbls 270
IP Gas Mcf 0
IP Water Bbls 0
Reservoir Class O
TD Formation MADISON
I ran this with 2 api's and this is what happenedAPI 49009200210000 - Initially, it didn't work, but it worked when I ran it by itself
Output:Spud Date 10/31/1967
Completion Date 01/10/1968
Formation DRY
Total Depth 14165
Plug Back 0
IP Oil Bbls 0
IP Gas Mcf 0
IP Water Bbls 0
Reservoir Class O
TD Formation MUDDY
API 49009065760000 - This worked when i ran it in the 2 well scenario - it downloaded 2 reportsOutput:Spud Date 11/01/1985
Completion Date 07/07/2015
Formation FRONTIER
Total Depth 13740
Plug Back 13364
Reservoir Class O
Spud Date 11/01/1985
Completion Date 01/28/1986
Formation DAKOTA
Total Depth 13740
Plug Back 13682
IP Oil Bbls 33
IP Gas Mcf 9
IP Water Bbls 0
Reservoir Class O
TD Formation MORRISON
Error:C:\Python365\python.exe O:/Python/WellInfo/src/FetchCompletions.py
Please enter api filename: Api_May_27_2018.txt
http://wogcc.state.wy.us/wyocomp.cfm?nAPI=0920021
Fetching main page for entry: 49009200210000
downloading pdf at: http://wugiwus.state.wy.us/whatupcomps.cfm?nautonum=17768
Traceback (most recent call last):
File "O:/Python/WellInfo/src/FetchCompletions.py", line 98, in <module>
GetCompletions('apis.txt')
File "O:/Python/WellInfo/src/FetchCompletions.py", line 34, in __init__
self.parse_and_save(getpdfs=True)
File "O:/Python/WellInfo/src/FetchCompletions.py", line 94, in parse_and_save
file.unlink()
File "C:\Python365\lib\pathlib.py", line 1282, in unlink
self._accessor.unlink(self)
File "C:\Python365\lib\pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '..\\data\\html\\api_49009200210000.html'
Process finished with exit code 1
Error:C:\Python365\python.exe O:/Python/WellInfo/src/FetchCompletions.py
Please enter api filename: Api_May_27_2018.txt
http://wogcc.state.wy.us/wyocomp.cfm?nAPI=0920021
Fetching main page for entry: 49009200210000
http://wogcc.state.wy.us/wyocomp.cfm?nAPI=0906576
Fetching main page for entry: 49009065760000
downloading pdf at: http://wugiwus.state.wy.us/whatupcomps.cfm?nautonum=17696
Traceback (most recent call last):
File "O:/Python/WellInfo/src/FetchCompletions.py", line 98, in <module>
GetCompletions('apis.txt')
File "O:/Python/WellInfo/src/FetchCompletions.py", line 34, in __init__
self.parse_and_save(getpdfs=True)
File "O:/Python/WellInfo/src/FetchCompletions.py", line 94, in parse_and_save
file.unlink()
File "C:\Python365\lib\pathlib.py", line 1282, in unlink
self._accessor.unlink(self)
File "C:\Python365\lib\pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '..\\data\\html\\api_49009065760000.html'
Process finished with exit code 1
Error:C:\Python365\python.exe O:/Python/WellInfo/src/FetchCompletions.py
Please enter api filename: Api_May_27_2018.txt
http://wogcc.state.wy.us/wyocomp.cfm?nAPI=0922771
Fetching main page for entry: 49009227710000
downloading pdf at: http://wugiwus.state.wy.us/whatupcomps.cfm?nautonum=20020
Traceback (most recent call last):
File "O:/Python/WellInfo/src/FetchCompletions.py", line 98, in <module>
GetCompletions('apis.txt')
File "O:/Python/WellInfo/src/FetchCompletions.py", line 34, in __init__
self.parse_and_save(getpdfs=True)
File "O:/Python/WellInfo/src/FetchCompletions.py", line 94, in parse_and_save
file.unlink()
File "C:\Python365\lib\pathlib.py", line 1282, in unlink
self._accessor.unlink(self)
File "C:\Python365\lib\pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '..\\data\\html\\api_49009227710000.html'
Process finished with exit code 1
Error:C:\Python365\python.exe O:/Python/WellInfo/src/FetchCompletions.py
Please enter api filename: Api_May_27_2018.txt
http://wogcc.state.wy.us/wyocomp.cfm?nAPI=0922990
Fetching main page for entry: 49009229900000
Traceback (most recent call last):
File "O:/Python/WellInfo/src/FetchCompletions.py", line 98, in <module>
GetCompletions('apis.txt')
File "O:/Python/WellInfo/src/FetchCompletions.py", line 34, in __init__
self.parse_and_save(getpdfs=True)
File "O:/Python/WellInfo/src/FetchCompletions.py", line 94, in parse_and_save
file.unlink()
File "C:\Python365\lib\pathlib.py", line 1282, in unlink
self._accessor.unlink(self)
File "C:\Python365\lib\pathlib.py", line 387, in wrapped
return strfunc(str(pathobj), *args)
FileNotFoundError: [WinError 2] The system cannot find the file specified: '..\\data\\html\\api_49009229900000.html'
Process finished with exit code 1