Contributors rdmaloney

Last run failed with status code 1.

Console output of last run

Injecting configuration and compiling... [1G [1G-----> Python app detected [1G-----> Installing python-3.6.2 [1G-----> Installing pip [1G-----> Installing requirements with pip [1G Obtaining scraperwiki from git+http://github.com/openaustralia/scraperwiki-python.git@morph_defaults#egg=scraperwiki (from -r /tmp/build/requirements.txt (line 6)) [1G Cloning http://github.com/openaustralia/scraperwiki-python.git (to revision morph_defaults) to /app/.heroku/src/scraperwiki [1G Running command git clone -q http://github.com/openaustralia/scraperwiki-python.git /app/.heroku/src/scraperwiki [1G Running command git checkout -b morph_defaults --track origin/morph_defaults [1G Switched to a new branch 'morph_defaults' [1G Branch morph_defaults set up to track remote branch morph_defaults from origin. [1G Collecting beautifulsoup4==4.6.0 (from -r /tmp/build/requirements.txt (line 7)) [1G Downloading https://files.pythonhosted.org/packages/9e/d4/10f46e5cfac773e22707237bfcd51bbffeaf0a576b0a847ec7ab15bd7ace/beautifulsoup4-4.6.0-py3-none-any.whl (86kB) [1G Collecting pandas==0.23.0 (from -r /tmp/build/requirements.txt (line 8)) [1G Downloading https://files.pythonhosted.org/packages/69/ec/8ff0800b8594691759b78a42ccd616f81e7099ee47b167eb9bbd502c02b9/pandas-0.23.0-cp36-cp36m-manylinux1_x86_64.whl (11.7MB) [1G Collecting numpy==1.14.3 (from -r /tmp/build/requirements.txt (line 9)) [1G Downloading https://files.pythonhosted.org/packages/71/90/ca61e203e0080a8cef7ac21eca199829fa8d997f7c4da3e985b49d0a107d/numpy-1.14.3-cp36-cp36m-manylinux1_x86_64.whl (12.2MB) [1G Collecting requests==2.18.4 (from -r /tmp/build/requirements.txt (line 10)) [1G Downloading https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl (88kB) [1G Collecting dumptruck>=0.1.2 (from scraperwiki->-r /tmp/build/requirements.txt (line 6)) [1G Downloading https://files.pythonhosted.org/packages/15/27/3330a343de80d6849545b6c7723f8c9a08b4b104de964ac366e7e6b318df/dumptruck-0.1.6.tar.gz [1G Collecting pytz>=2011k (from pandas==0.23.0->-r /tmp/build/requirements.txt (line 8)) [1G Downloading https://files.pythonhosted.org/packages/87/76/46d697698a143e05f77bec5a526bf4e56a0be61d63425b68f4ba553b51f2/pytz-2019.2-py2.py3-none-any.whl (508kB) [1G Collecting python-dateutil>=2.5.0 (from pandas==0.23.0->-r /tmp/build/requirements.txt (line 8)) [1G Downloading https://files.pythonhosted.org/packages/41/17/c62faccbfbd163c7f57f3844689e3a78bae1f403648a6afb1d0866d87fbb/python_dateutil-2.8.0-py2.py3-none-any.whl (226kB) [1G Collecting chardet<3.1.0,>=3.0.2 (from requests==2.18.4->-r /tmp/build/requirements.txt (line 10)) [1G Downloading https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl (133kB) [1G Collecting urllib3<1.23,>=1.21.1 (from requests==2.18.4->-r /tmp/build/requirements.txt (line 10)) [1G Downloading https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl (132kB) [1G Collecting certifi>=2017.4.17 (from requests==2.18.4->-r /tmp/build/requirements.txt (line 10)) [1G Downloading https://files.pythonhosted.org/packages/69/1b/b853c7a9d4f6a6d00749e94eb6f3a041e342a885b87340b79c1ef73e3a78/certifi-2019.6.16-py2.py3-none-any.whl (157kB) [1G Collecting idna<2.7,>=2.5 (from requests==2.18.4->-r /tmp/build/requirements.txt (line 10)) [1G Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl (56kB) [1G Collecting six>=1.5 (from python-dateutil>=2.5.0->pandas==0.23.0->-r /tmp/build/requirements.txt (line 8)) [1G Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl [1G Building wheels for collected packages: dumptruck [1G Building wheel for dumptruck (setup.py): started [1G Building wheel for dumptruck (setup.py): finished with status 'done' [1G Created wheel for dumptruck: filename=dumptruck-0.1.6-cp36-none-any.whl size=11844 sha256=8a5a205c83cf52c71dc07ee22172313940d13e0e6c57d99a8e2eeaa0a7003b2e [1G Stored in directory: /tmp/pip-ephem-wheel-cache-cdf_40n4/wheels/57/df/83/32654ae89119876c7a7db66829bbdb646caa151589dbaf226e [1G Successfully built dumptruck [1G Installing collected packages: dumptruck, chardet, urllib3, certifi, idna, requests, scraperwiki, beautifulsoup4, pytz, numpy, six, python-dateutil, pandas [1G Running setup.py develop for scraperwiki [1G Successfully installed beautifulsoup4-4.6.0 certifi-2019.6.16 chardet-3.0.4 dumptruck-0.1.6 idna-2.6 numpy-1.14.3 pandas-0.23.0 python-dateutil-2.8.0 pytz-2019.2 requests-2.18.4 scraperwiki six-1.12.0 urllib3-1.22 [1G [1G [1G-----> Discovering process types [1G Procfile declares types -> scraper Injecting scraper and running... Now currently scraping link: http://ufcstats.com/event-details/a79bfbc01b2264d6 Now currently scraping link: http://ufcstats.com/event-details/4834ff149dc9542a Now currently scraping link: http://ufcstats.com/event-details/94a5aaf573f780ad Now currently scraping link: http://ufcstats.com/event-details/1bf49bf829964144 Now currently scraping link: http://ufcstats.com/event-details/3cf68c1d17f66af7 Now currently scraping link: http://ufcstats.com/event-details/0941df56f6ac954b Now currently scraping link: http://ufcstats.com/event-details/3ae10ac4df3df05c Now currently scraping link: http://ufcstats.com/event-details/df05aa15b2d66f57 Now currently scraping link: http://ufcstats.com/event-details/fd87b1bbfcde9d5e Now currently scraping link: http://ufcstats.com/event-details/8d5daf67983b65ba Now currently scraping link: http://ufcstats.com/event-details/81ca2c245b19b3c5 Now currently scraping link: http://ufcstats.com/event-details/b09890ba7ce1d1e2 Now currently scraping link: http://ufcstats.com/event-details/4565d435005319c0 Now currently scraping link: http://ufcstats.com/event-details/74fefd43f073cd2f Traceback (most recent call last): File "scraper.py", line 101, in <module> df = merge_data(df) File "scraper.py", line 87, in merge_data test = pd.merge(df, odds_db, left_on=["Fighter_1", "Fighter_2"], right_on=["Fighter1", "Fighter2"]) File "/app/.heroku/python/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 60, in merge validate=validate) File "/app/.heroku/python/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 550, in __init__ self.join_names) = self._get_merge_keys() File "/app/.heroku/python/lib/python3.6/site-packages/pandas/core/reshape/merge.py", line 856, in _get_merge_keys rk, stacklevel=stacklevel)) File "/app/.heroku/python/lib/python3.6/site-packages/pandas/core/generic.py", line 1379, in _get_label_or_level_values raise KeyError(key) KeyError: 'Fighter1'

Data

Downloaded 5 times by rdmaloney

To download data sign in with GitHub

Download table (as CSV) Download SQLite database (13 KB) Use the API

rows 0 / 0

Statistics

Average successful run time: less than a minute

Total run time: 27 minutes

Total cpu time used: 1 minute

Total disk space used: 124 KB

History

  • Manually ran revision 96ab7839 and failed .
    nothing changed in the database
  • Manually ran revision cd9e3237 and completed successfully .
    32 records removed in the database
  • Manually ran revision d68bdbbb and completed successfully .
    10 records removed, 32 records updated in the database
  • Manually ran revision 8c8a16aa and completed successfully .
    nothing changed in the database
  • Manually ran revision 077e8978 and failed .
    nothing changed in the database
  • ...
  • Created on morph.io

Show complete history

Scraper code

Event_odds