Closed JarnoLeConte closed 10 years ago
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.
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.
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.
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?
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.
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.
Building from source means that you can run it on Mac OS X? I tried to replace the default setup.py file with one created by 'py2applet' which will use 'py2app' to make a Mac OS X distribution. But the generated application crashes after startup. Does someone know, how this must be done?
I used the following command to create a setup file:
I made small changes in the setup file to avoid some errors. This is the resulting file:
Then I try to build a executable by entering:
After starting up the application, some window shows up with the message "PixivUtil2 Error". In the console there are these errors: