tducret/amazon-scraper-python

"amazon2csv" command not accessible in Windows 10

Closed this issue ยท 12 comments

Hello @Suleman-Elahi. Sorry to hear that :(
I don't have a Windows machine to test it.
Can you please check that amazon2csv is in your <python_directory>/Scripts?
Check also that this folder is in your PATH.

Source : https://superuser.com/questions/1204232/why-arent-pip-installed-executables-available-from-the-command-line?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

Just wanted to bump this issue as I have the same problem on Windows 10.

Yeah. The scripts folder is in the path but the actual problem is that it creates the binary file for Linux or MAC I think. Ideally, on Windows, it should create "amazon2csv.exe" file in the "Scripts" folder.
image

I'm not sure that it is a binary file, could you please check with an editor?
What is written at the top 3-4 lines?
Could you add a .py extension to the file, and check again the execution in your command prompt?
Thank you, your help is greatly appreciated @Suleman-Elahi

The contents of the "amazon2csv" file are:
image
And after running it with ".py" extension , following happens.
image

That's weird. I am currently building a Windows VM to reproduce this issue and try to fix it. I'll let you know @Suleman-Elahi and @ReedJessen

Hello,
I renamed amazon2csv to amazon2csv.py, and updated the pip package accordingly.
Could you upgrade and test on Windows?

pip3 install --no-cache-dir -U amazonscraper
amazon2csv.py --keywords="Python programming" --maxproductnb=2

I tested on Windows today, and that worked properly.

Recap :

  • make sure <python_directory>/Scripts is in your PATH
  • execute amazon2csv.py --help in a cmd window to check

image

Hi Tilbault. My issue may related to this one. It seems executing, but no output? can you help?

Hello @davidliu1978
That is still difficult for me to reproduce it since I don't have a Windows host.
Could you try to execute this?

python3 amazon2csv.py --help

thanks
image
image

@davidliu1978 Have you tried to install amazon2csv with pip3 install -U amazonscraper?