mvabdi/vsco-scraper

Problems with Linux filesystem on v0.47

bamtan opened this issue · 6 comments

Hi, when issuing the following command: vsco-scraper vsco_user -i

It creates a new folder called my_username\vsco_user inside my /home/ directory (/home/my_username\vsco_user). This makes the program require elevation to run, and outputs permission errors.

Traceback (most recent call last):
  File "/usr/local/bin/vsco-scraper", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.5/dist-packages/vscoscrape/vscoscrape.py", line 211, in main
    scraper = Scraper(args.username)
  File "/usr/local/lib/python3.5/dist-packages/vscoscrape/vscoscrape.py", line 24, in __init__
    os.makedirs(path)
  File "/usr/lib/python3.5/os.py", line 241, in makedirs
    mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/home/my_user\\vsco_user'

I haven't used any other version aside from the fix made in #2, v0.37

Can confirm that harangutang's fix from his fork is working on my Linux machine.

Tested on Windows 10 1803, working correctly. @harangutang are you able to make a pull request?