Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Traceback errors - too many
#1
Ok - I used to have a version of this that worked. It's been a while since I've used this (frustration, other project, vacation) but mostly frustration. I have been working on learning Python but as they say "Rome wasn't built in a day".

At any rate, the goal is to get completion reports. When I run this, it looks ok. It doesn't error out until the end. I've changed the website link below because the WOGCC changed their website. When I look at the paths to get the download links, their are no protocols (I've highlighted one below. The problem is Python won't work without it.

Error:
pipeline.wyo.gov/coreapi.cfm?nAPI=2510778 Fetching main page for entry: 49025107780001 Traceback (most recent call last): File "O:/Python/WellInfo old/src/delete.py", line 96, in <module> GetCompletions('apis.txt') File "O:/Python/WellInfo old/src/delete.py", line 33, in __init__ self.get_all_pages() File "O:/Python/WellInfo old/src/delete.py", line 47, in get_all_pages response = requests.get(url) File "C:\Python365\lib\site-packages\requests\api.py", line 72, in get return request('get', url, params=params, **kwargs) File "C:\Python365\lib\site-packages\requests\api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "C:\Python365\lib\site-packages\requests\sessions.py", line 494, in request prep = self.prepare_request(req) File "C:\Python365\lib\site-packages\requests\sessions.py", line 437, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "C:\Python365\lib\site-packages\requests\models.py", line 305, in prepare self.prepare_url(url, params) File "C:\Python365\lib\site-packages\requests\models.py", line 379, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL 'pipeline.wyo.gov/coreapi.cfm?nAPI=2510778': No schema supplied. Perhaps you meant http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510778?
At the end of the day, it looks like it's working as in I'm getting completion reports but I'm not. Any help you can provide will be most appreciated. Smile Smile

One thing though - it does provide me with one core report and a wellsite geology report. I just don't understand why it's only one? An issue for another (sooner rather than later day).

import requests
from bs4 import BeautifulSoup
from pathlib import Path
import CheckInternet
import sys


class GetCompletions:
    def __init__(self, infile):
        self.check_network = CheckInternet.CheckInternet()
        self.homepath = Path('.')
        self.rootpath = self.homepath / '..'
        self.datapath = self.rootpath / 'data'
        self.commandpath = self.datapath / 'command_files'
        self.completionspath = self.datapath / 'completions'
        self.htmlpath = self.datapath / 'html'
        self.reportspath = self.datapath / 'reports'

        if self.check_network.check_availability():
            # use: Api_May_27_2018.txt for testing
            # self.infilename = 'Api_May_27_2018.txt'
            self.infilename = input('Please enter api filename: ')

            self.infile = self.commandpath / self.infilename
            self.api = []

            with self.infile.open() as f:
                for line in f:
                    self.api.append(line.strip())

            self.fields = ['Spud Date', 'Total Depth', 'IP Oil Bbls', 'Reservoir Class', 'Completion Date',
                           'Plug Back', 'IP Gas Mcf', 'TD Formation', 'Formation', 'IP Water Bbls']
            self.get_all_pages()
            self.parse_and_save(getpdfs=True)
        else:
            print('Internet access required, and not found.')
            print('Please make Internet available and try again')

    def get_url(self):
        for entry in self.api:
            print("[b]http://[b][/b]pipeline.wyo.gov/coreapi.cfm?nAPI={}".format(entry[3:10]))
            yield (entry, "http://pipeline.wyo.gov/coreapi.cfm?nAPI={}".format(entry[3:10]))

    def get_all_pages(self):
        for entry, url in self.get_url():
            print('Fetching main page for entry: {}'.format(entry))
            response = requests.get(url)
            if response.status_code == 200:
                filename = self.htmlpath / 'api_{}.html'.format(entry)
                with filename.open('w') as f:
                    f.write(response.text)
            else:
                print('error downloading {}'.format(entry))

    def parse_and_save(self, getpdfs=False):
        filelist = [file for file in self.htmlpath.iterdir() if file.is_file()]
        for file in filelist:
            with file.open('r') as f:
                soup = BeautifulSoup(f.read(), 'lxml')
            if getpdfs:
                links = soup.find_all('a')
                for link in links:
                    url = link['href']
                    if 'www' in url:
                        continue
                    print('downloading pdf at: {}'.format(url))
                    p = url.index('=')
                    response = requests.get(url, stream=True, allow_redirects=False)
                    if response.status_code == 200:
                        try:
                            header_info = response.headers['Content-Disposition']
                            idx = header_info.index('filename')
                            filename = self.completionspath / header_info[idx + 9:]
                        except ValueError:
                            filename = self.completionspath / 'comp{}.pdf'.format(url[p + 1:])
                            print("couldn't locate filename for {} will use: {}".format(file, filename))
                        except KeyError:
                            filename = self.completionspath / 'comp{}.pdf'.format(url[p + 1:])
                            print('got KeyError on {}, response.headers = {}'.format(file, response.headers))
                            print('will use name: {}'.format(filename))
                            print(response.headers)
                        with filename.open('wb') as f:
                            f.write(response.content)
            sfname = self.reportspath / 'summary_{}.txt'.format((file.name.split('_'))[1].split('.')[0][3:10])
            tds = soup.find_all('td')
            with sfname.open('w') as f:
                for td in tds:
                    if td.text:
                        if any(field in td.text for field in self.fields):
                            f.write('{}\n'.format(td.text))
            # Delete html file when finished
            file.unlink()


if __name__ == '__main__':
    GetCompletions('apis.txt')
Error:
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 17:00:18) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. >>> ========== RESTART: O:\Python\WellInfo old\src\FetchCompletions.py ========== Please enter api filename: Api_May_27_2018.txt pipeline.wyo.gov/coreapi.cfm?nAPI=2510778 Fetching main page for entry: 49025107780001 Traceback (most recent call last): File "O:\Python\WellInfo old\src\FetchCompletions.py", line 96, in <module> GetCompletions('apis.txt') File "O:\Python\WellInfo old\src\FetchCompletions.py", line 33, in __init__ self.get_all_pages() File "O:\Python\WellInfo old\src\FetchCompletions.py", line 47, in get_all_pages response = requests.get(url) File "C:\Python365\lib\site-packages\requests\api.py", line 72, in get return request('get', url, params=params, **kwargs) File "C:\Python365\lib\site-packages\requests\api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "C:\Python365\lib\site-packages\requests\sessions.py", line 494, in request prep = self.prepare_request(req) File "C:\Python365\lib\site-packages\requests\sessions.py", line 437, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "C:\Python365\lib\site-packages\requests\models.py", line 305, in prepare self.prepare_url(url, params) File "C:\Python365\lib\site-packages\requests\models.py", line 379, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL 'pipeline.wyo.gov/coreapi.cfm?nAPI=2510778': No schema supplied. Perhaps you meant http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510778? >>> ========== RESTART: O:\Python\WellInfo old\src\FetchCompletions.py ========== Please enter api filename: Api_May_27_2018.txt http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510778 Fetching main page for entry: 49025107780001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510781 Fetching main page for entry: 49025107810000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510788 Fetching main page for entry: 49025107880001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510792 Fetching main page for entry: 49025107920000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510807 Fetching main page for entry: 49025108070000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510831 Fetching main page for entry: 49025108310001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510864 Fetching main page for entry: 49025108640000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510869 Fetching main page for entry: 49025108690000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510876 Fetching main page for entry: 49025108760000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510882 Fetching main page for entry: 49025108820000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510890 Fetching main page for entry: 49025108900000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510891 Fetching main page for entry: 49025108910000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510892 Fetching main page for entry: 49025108920000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510897 Fetching main page for entry: 49025108970000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510902 Fetching main page for entry: 49025109020000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510903 Fetching main page for entry: 49025109030000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510906 Fetching main page for entry: 49025109060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510916 Fetching main page for entry: 49025109160000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510917 Fetching main page for entry: 49025109170000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510918 Fetching main page for entry: 49025109180000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510919 Fetching main page for entry: 49025109190000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510920 Fetching main page for entry: 49025109200000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510921 Fetching main page for entry: 49025109210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510925 Fetching main page for entry: 49025109250000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510926 Fetching main page for entry: 49025109260000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510927 Fetching main page for entry: 49025109270000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510929 Fetching main page for entry: 49025109290000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510932 Fetching main page for entry: 49025109320000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510937 Fetching main page for entry: 49025109370000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510939 Fetching main page for entry: 49025109390000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510944 Fetching main page for entry: 49025109440000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510946 Fetching main page for entry: 49025109460000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510950 Fetching main page for entry: 49025109500000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510950 Fetching main page for entry: 49025109500001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510951 Fetching main page for entry: 49025109510000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510958 Fetching main page for entry: 49025109580000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510961 Fetching main page for entry: 49025109610000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510963 Fetching main page for entry: 49025109630000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510965 Fetching main page for entry: 49025109650000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510966 Fetching main page for entry: 49025109660000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510971 Fetching main page for entry: 49025109710000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510972 Fetching main page for entry: 49025109720000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510973 Fetching main page for entry: 49025109730000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510973 Fetching main page for entry: 49025109730001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510974 Fetching main page for entry: 49025109740000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510993 Fetching main page for entry: 49025109930000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2510993 Fetching main page for entry: 49025109930001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511012 Fetching main page for entry: 49025110120000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511019 Fetching main page for entry: 49025110190000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511022 Fetching main page for entry: 49025110220000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511023 Fetching main page for entry: 49025110230000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511027 Fetching main page for entry: 49025110270000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511049 Fetching main page for entry: 49025110490000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511065 Fetching main page for entry: 49025110650000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511070 Fetching main page for entry: 49025110700000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511123 Fetching main page for entry: 49025111230000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511139 Fetching main page for entry: 49025111390000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511161 Fetching main page for entry: 49025111610000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2511207 Fetching main page for entry: 49025112070000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2512106 Fetching main page for entry: 49025121060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520002 Fetching main page for entry: 49025200020000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520005 Fetching main page for entry: 49025200050000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520082 Fetching main page for entry: 49025200820000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520106 Fetching main page for entry: 49025201060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520143 Fetching main page for entry: 49025201430000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520228 Fetching main page for entry: 49025202280000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520242 Fetching main page for entry: 49025202420000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520242 Fetching main page for entry: 49025202420001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520243 Fetching main page for entry: 49025202430000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520272 Fetching main page for entry: 49025202720000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520293 Fetching main page for entry: 49025202930000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520311 Fetching main page for entry: 49025203110000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520321 Fetching main page for entry: 49025203210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520335 Fetching main page for entry: 49025203350000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520337 Fetching main page for entry: 49025203370000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520426 Fetching main page for entry: 49025204260000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520431 Fetching main page for entry: 49025204310000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520435 Fetching main page for entry: 49025204350000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520436 Fetching main page for entry: 49025204360000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520441 Fetching main page for entry: 49025204410000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520442 Fetching main page for entry: 49025204420000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520443 Fetching main page for entry: 49025204430000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520448 Fetching main page for entry: 49025204480000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520453 Fetching main page for entry: 49025204530000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520454 Fetching main page for entry: 49025204540000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520492 Fetching main page for entry: 49025204920000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520496 Fetching main page for entry: 49025204960000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520500 Fetching main page for entry: 49025205000000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520507 Fetching main page for entry: 49025205070000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520521 Fetching main page for entry: 49025205210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520524 Fetching main page for entry: 49025205240000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520526 Fetching main page for entry: 49025205260000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520550 Fetching main page for entry: 49025205500000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520566 Fetching main page for entry: 49025205660000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520567 Fetching main page for entry: 49025205670000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520567 Fetching main page for entry: 49025205670001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520605 Fetching main page for entry: 49025206050000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520608 Fetching main page for entry: 49025206080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520631 Fetching main page for entry: 49025206310000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520640 Fetching main page for entry: 49025206400000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520664 Fetching main page for entry: 49025206640000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520668 Fetching main page for entry: 49025206680000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520670 Fetching main page for entry: 49025206700000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520689 Fetching main page for entry: 49025206890000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520690 Fetching main page for entry: 49025206900000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520692 Fetching main page for entry: 49025206920000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520737 Fetching main page for entry: 49025207370000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520753 Fetching main page for entry: 49025207530000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520754 Fetching main page for entry: 49025207540000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520756 Fetching main page for entry: 49025207560000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520758 Fetching main page for entry: 49025207580000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520759 Fetching main page for entry: 49025207590000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520761 Fetching main page for entry: 49025207610000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520766 Fetching main page for entry: 49025207660000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520767 Fetching main page for entry: 49025207670000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520767 Fetching main page for entry: 49025207670001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520768 Fetching main page for entry: 49025207680000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520770 Fetching main page for entry: 49025207700000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520775 Fetching main page for entry: 49025207750000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520777 Fetching main page for entry: 49025207770000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520784 Fetching main page for entry: 49025207840000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520785 Fetching main page for entry: 49025207850000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520789 Fetching main page for entry: 49025207890000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520790 Fetching main page for entry: 49025207900000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520801 Fetching main page for entry: 49025208010000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520817 Fetching main page for entry: 49025208170000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520821 Fetching main page for entry: 49025208210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520836 Fetching main page for entry: 49025208360000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520859 Fetching main page for entry: 49025208590000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520891 Fetching main page for entry: 49025208910000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520901 Fetching main page for entry: 49025209010000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520907 Fetching main page for entry: 49025209070000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520908 Fetching main page for entry: 49025209080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520910 Fetching main page for entry: 49025209100000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520918 Fetching main page for entry: 49025209180000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520919 Fetching main page for entry: 49025209190000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520923 Fetching main page for entry: 49025209230000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520926 Fetching main page for entry: 49025209260000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520927 Fetching main page for entry: 49025209270000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520931 Fetching main page for entry: 49025209310000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520938 Fetching main page for entry: 49025209380000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520938 Fetching main page for entry: 49025209380001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520948 Fetching main page for entry: 49025209480000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520971 Fetching main page for entry: 49025209710000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520977 Fetching main page for entry: 49025209770000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520982 Fetching main page for entry: 49025209820000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520982 Fetching main page for entry: 49025209820001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520987 Fetching main page for entry: 49025209870000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520996 Fetching main page for entry: 49025209960000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520997 Fetching main page for entry: 49025209970000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2520998 Fetching main page for entry: 49025209980000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521012 Fetching main page for entry: 49025210120000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521014 Fetching main page for entry: 49025210140000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521016 Fetching main page for entry: 49025210160000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521036 Fetching main page for entry: 49025210360000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521040 Fetching main page for entry: 49025210400000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521053 Fetching main page for entry: 49025210530000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521054 Fetching main page for entry: 49025210540000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521066 Fetching main page for entry: 49025210660000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521066 Fetching main page for entry: 49025210660001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521071 Fetching main page for entry: 49025210710000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521072 Fetching main page for entry: 49025210720000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521076 Fetching main page for entry: 49025210760000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521087 Fetching main page for entry: 49025210870000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521099 Fetching main page for entry: 49025210990000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521106 Fetching main page for entry: 49025211060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521120 Fetching main page for entry: 49025211200000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521151 Fetching main page for entry: 49025211510000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521176 Fetching main page for entry: 49025211760000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521177 Fetching main page for entry: 49025211770000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521182 Fetching main page for entry: 49025211820000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521183 Fetching main page for entry: 49025211830000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521187 Fetching main page for entry: 49025211870000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521188 Fetching main page for entry: 49025211880000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521192 Fetching main page for entry: 49025211920000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521195 Fetching main page for entry: 49025211950000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521199 Fetching main page for entry: 49025211990000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521201 Fetching main page for entry: 49025212010000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521203 Fetching main page for entry: 49025212030000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521246 Fetching main page for entry: 49025212460000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521252 Fetching main page for entry: 49025212520000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521302 Fetching main page for entry: 49025213020000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521303 Fetching main page for entry: 49025213030000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521310 Fetching main page for entry: 49025213100000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521330 Fetching main page for entry: 49025213300000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521331 Fetching main page for entry: 49025213310000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521332 Fetching main page for entry: 49025213320000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521335 Fetching main page for entry: 49025213350000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521337 Fetching main page for entry: 49025213370000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521341 Fetching main page for entry: 49025213410000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521343 Fetching main page for entry: 49025213430000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521354 Fetching main page for entry: 49025213540000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521356 Fetching main page for entry: 49025213560000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521363 Fetching main page for entry: 49025213630000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521370 Fetching main page for entry: 49025213700000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521381 Fetching main page for entry: 49025213810000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521381 Fetching main page for entry: 49025213810001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521389 Fetching main page for entry: 49025213890000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521394 Fetching main page for entry: 49025213940000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521397 Fetching main page for entry: 49025213970000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521398 Fetching main page for entry: 49025213980000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521399 Fetching main page for entry: 49025213990000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521406 Fetching main page for entry: 49025214060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521410 Fetching main page for entry: 49025214100000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521411 Fetching main page for entry: 49025214110000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521443 Fetching main page for entry: 49025214430000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521445 Fetching main page for entry: 49025214450000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521446 Fetching main page for entry: 49025214460000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521521 Fetching main page for entry: 49025215210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521611 Fetching main page for entry: 49025216110000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521678 Fetching main page for entry: 49025216780000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521680 Fetching main page for entry: 49025216800000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521693 Fetching main page for entry: 49025216930000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521721 Fetching main page for entry: 49025217210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521777 Fetching main page for entry: 49025217770000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521799 Fetching main page for entry: 49025217990000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521803 Fetching main page for entry: 49025218030000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521990 Fetching main page for entry: 49025219900000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521991 Fetching main page for entry: 49025219910000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2521996 Fetching main page for entry: 49025219960000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522024 Fetching main page for entry: 49025220240000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522042 Fetching main page for entry: 49025220420000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522066 Fetching main page for entry: 49025220660000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522184 Fetching main page for entry: 49025221840000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522186 Fetching main page for entry: 49025221860000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522216 Fetching main page for entry: 49025222160000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522223 Fetching main page for entry: 49025222230000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522264 Fetching main page for entry: 49025222640000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522381 Fetching main page for entry: 49025223810000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522382 Fetching main page for entry: 49025223820000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522384 Fetching main page for entry: 49025223840000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522388 Fetching main page for entry: 49025223880000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522388 Fetching main page for entry: 49025223887000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522410 Fetching main page for entry: 49025224100000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522410 Fetching main page for entry: 49025224107000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522425 Fetching main page for entry: 49025224250000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522426 Fetching main page for entry: 49025224260000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522428 Fetching main page for entry: 49025224280000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522429 Fetching main page for entry: 49025224290000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522432 Fetching main page for entry: 49025224320000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522437 Fetching main page for entry: 49025224370000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522466 Fetching main page for entry: 49025224660000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522492 Fetching main page for entry: 49025224920000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522492 Fetching main page for entry: 49025224920001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522560 Fetching main page for entry: 49025225600000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522582 Fetching main page for entry: 49025225820000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522590 Fetching main page for entry: 49025225900000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522590 Fetching main page for entry: 49025225907000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522614 Fetching main page for entry: 49025226140000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522622 Fetching main page for entry: 49025226220000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522622 Fetching main page for entry: 49025226220100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522624 Fetching main page for entry: 49025226240000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522630 Fetching main page for entry: 49025226300000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522630 Fetching main page for entry: 49025226300001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522686 Fetching main page for entry: 49025226860000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522743 Fetching main page for entry: 49025227430001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522769 Fetching main page for entry: 49025227690000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522770 Fetching main page for entry: 49025227700000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522806 Fetching main page for entry: 49025228060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522807 Fetching main page for entry: 49025228070000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522808 Fetching main page for entry: 49025228080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522833 Fetching main page for entry: 49025228330000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522843 Fetching main page for entry: 49025228430000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2522847 Fetching main page for entry: 49025228470000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523006 Fetching main page for entry: 49025230060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523016 Fetching main page for entry: 49025230160000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523031 Fetching main page for entry: 49025230310000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523040 Fetching main page for entry: 49025230400000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523047 Fetching main page for entry: 49025230470000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523048 Fetching main page for entry: 49025230480000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523054 Fetching main page for entry: 49025230540000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523055 Fetching main page for entry: 49025230550100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523075 Fetching main page for entry: 49025230750000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523075 Fetching main page for entry: 49025230750001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523076 Fetching main page for entry: 49025230760000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523077 Fetching main page for entry: 49025230770000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523078 Fetching main page for entry: 49025230780000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523084 Fetching main page for entry: 49025230840000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523195 Fetching main page for entry: 49025231950000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523437 Fetching main page for entry: 49025234370000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523462 Fetching main page for entry: 49025234620000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523479 Fetching main page for entry: 49025234790000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523485 Fetching main page for entry: 49025234850000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523485 Fetching main page for entry: 49025234850200 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523485 Fetching main page for entry: 49025234850300 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523507 Fetching main page for entry: 49025235070000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523507 Fetching main page for entry: 49025235070001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523508 Fetching main page for entry: 49025235080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523588 Fetching main page for entry: 49025235880000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523589 Fetching main page for entry: 49025235890000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523608 Fetching main page for entry: 49025236080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523608 Fetching main page for entry: 49025236080001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523673 Fetching main page for entry: 49025236730000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523706 Fetching main page for entry: 49025237060000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523706 Fetching main page for entry: 49025237060100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523797 Fetching main page for entry: 49025237970000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523797 Fetching main page for entry: 49025237970100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523797 Fetching main page for entry: 49025237970200 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523801 Fetching main page for entry: 49025238010000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523808 Fetching main page for entry: 49025238080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523809 Fetching main page for entry: 49025238090000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523810 Fetching main page for entry: 49025238100000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523810 Fetching main page for entry: 49025238100001 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523811 Fetching main page for entry: 49025238110000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523860 Fetching main page for entry: 49025238600000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523902 Fetching main page for entry: 49025239020000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523921 Fetching main page for entry: 49025239210000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2523998 Fetching main page for entry: 49025239980000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524000 Fetching main page for entry: 49025240000000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524000 Fetching main page for entry: 49025240000100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524001 Fetching main page for entry: 49025240010000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524001 Fetching main page for entry: 49025240010100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524002 Fetching main page for entry: 49025240020000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524005 Fetching main page for entry: 49025240050000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524005 Fetching main page for entry: 49025240050100 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524008 Fetching main page for entry: 49025240080000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524009 Fetching main page for entry: 49025240090000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524010 Fetching main page for entry: 49025240100000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2524051 Fetching main page for entry: 49025240510000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2560011 Fetching main page for entry: 49025600110000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2560060 Fetching main page for entry: 49025600600000 http://pipeline.wyo.gov/coreapi.cfm?nAPI=2560131 Fetching main page for entry: 49025601310000 downloading pdf at: http://pipeline.wyo.gov/whatups/whatupcores.cfm?nautonum=5884 downloading pdf at: http://pipeline.wyo.gov/whatups/whatupcores.cfm?nautonum=5886 downloading pdf at: wellapi.cfm?nApino=2520106 Traceback (most recent call last): File "O:\Python\WellInfo old\src\FetchCompletions.py", line 96, in <module> GetCompletions('apis.txt') File "O:\Python\WellInfo old\src\FetchCompletions.py", line 34, in __init__ self.parse_and_save(getpdfs=True) File "O:\Python\WellInfo old\src\FetchCompletions.py", line 68, in parse_and_save response = requests.get(url, stream=True, allow_redirects=False) File "C:\Python365\lib\site-packages\requests\api.py", line 72, in get return request('get', url, params=params, **kwargs) File "C:\Python365\lib\site-packages\requests\api.py", line 58, in request return session.request(method=method, url=url, **kwargs) File "C:\Python365\lib\site-packages\requests\sessions.py", line 494, in request prep = self.prepare_request(req) File "C:\Python365\lib\site-packages\requests\sessions.py", line 437, in prepare_request hooks=merge_hooks(request.hooks, self.hooks), File "C:\Python365\lib\site-packages\requests\models.py", line 305, in prepare self.prepare_url(url, params) File "C:\Python365\lib\site-packages\requests\models.py", line 379, in prepare_url raise MissingSchema(error) requests.exceptions.MissingSchema: Invalid URL 'wellapi.cfm?nApino=2520106': No schema supplied. Perhaps you meant http://wellapi.cfm?nApino=2520106? >>>
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Traceback errors - many tjnichols 2 1,322 May-12-2018, 08:22 PM
Last Post: tjnichols

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020