tducret / amazon-scraper-python

Non-official client to get some info about products sold on Amazon
MIT License
871 stars 159 forks source link

"amazon2csv" command not accessible in Windows 10 #1

Closed Suleman-Elahi closed 6 years ago

Suleman-Elahi commented 6 years ago

image

tducret commented 6 years ago

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

ReedJessen commented 6 years ago

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

Suleman-Elahi commented 6 years ago

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

tducret commented 6 years ago

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

Suleman-Elahi commented 6 years ago

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

tducret commented 6 years ago

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

tducret commented 6 years ago

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
tducret commented 6 years ago

I tested on Windows today, and that worked properly.

Recap :

davidliu1978 commented 5 years ago

image

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

tducret commented 5 years ago

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
davidliu1978 commented 5 years ago

thanks image image

tducret commented 5 years ago

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