Giter VIP home page Giter VIP logo

Comments (6)

Hamuko avatar Hamuko commented on September 22, 2024 1

I don't really understand why you're trying to turn it into an app.

All you need to do is satisfy the module requirements (mechanize 0.2.5, BeautifulSoup 3.2.0, socksipy-branch 1.02+) and run the script. You can either get them with pip, easy_install or just throw the modules into the same directory as PixivUtil2. Then just run python PixivUtil2.py on the command-line.

I use it on OS X on a daily basis.

from pixivutil2.

JarnoLeConte avatar JarnoLeConte commented on September 22, 2024

I thought that some functionality was only available through the UI. But you are right, it works well using the Terminal. But logging in through the Terminal will not work, I had to copy the cookie manually as was written in the FAQ.

from pixivutil2.

Hamuko avatar Hamuko commented on September 22, 2024

Logging through command-line works fine for me, although I normally use my username and password in the config file (for scripting purposes). Just remember that even if you can't see your password in the command-line, it's still being entered. I copy-pasted mine, though, as I use a password manager. Also, I think the login names are all lower-case. Mine certainly is, even though it's with a capital first letter on my profile page.

from pixivutil2.

JarnoLeConte avatar JarnoLeConte commented on September 22, 2024

Thanks for the additional information, but that is not the problem in my case. I found out that setting the "userrobots" setting to False will solve the problem. I'm not sure what that means and why it give different results. But it make sense because the error before was about Pixiv blocking my request because of robots.txt. I should think that everyone should have that problem because of the predefined user agent within the settings file, don't you think?

from pixivutil2.

Nandaka avatar Nandaka commented on September 22, 2024

I don't set the default for userobot = false to make sure user read the readme.txt.

I don't think user agent should have any impact as I'm still using the default one.

from pixivutil2.

kode54 avatar kode54 commented on September 22, 2024

I don't think user agent matters. There are some sites which strictly enforce robots.txt on any client which actually retrieves robots.txt in the first place, and if there is a * rule, it enforces it on all clients that retrieve robots.txt regardless of what their user agent string is.

from pixivutil2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.