amzscraper icon indicating copy to clipboard operation
amzscraper copied to clipboard

KeyError: 'AMAZON_USER'

Open RedHatter opened this issue 4 years ago • 3 comments
trafficstars

Any attempt to run amzscraper gives me the following.

Traceback (most recent call last):
  File "/home/ava/.pyenv/versions/3.8.3/bin/amzscraper", line 11, in <module>
    load_entry_point('amzscraper==1.0.0', 'console_scripts', 'amzscraper')()
  File "/home/ava/.pyenv/versions/3.8.3/lib/python3.8/site-packages/amzscraper.py", line 287, in main
    args = vars(parse_args())
  File "/home/ava/.pyenv/versions/3.8.3/lib/python3.8/site-packages/amzscraper.py", line 225, in parse_args
    default=os.environ["AMAZON_USER"],
  File "/home/ava/.pyenv/versions/3.8.3/lib/python3.8/os.py", line 675, in __getitem__
    raise KeyError(key) from None
KeyError: 'AMAZON_USER'

RedHatter avatar Jul 23 '21 08:07 RedHatter

@RedHatter Did you ever find a fix for this? I just ran into the same issue as you with python 3.9

nicjohnston avatar Nov 30 '21 21:11 nicjohnston

I did not. Though I didn't try very hard to solve it.

RedHatter avatar Nov 30 '21 22:11 RedHatter

I should have followed up on this a long time ago, but I was able to fix the problem by removing a handful of lines. Forked this after updating some syntax for compatibility with recent selenium versions: https://github.com/nicjohnston/amzscraper

nicjohnston avatar Jul 23 '22 03:07 nicjohnston