Guest User

kek

a guest
Oct 17th, 2023
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. python.org/downloads/
  2. jetbrains.com/pycharm/download
  3. drunohazarb/4chan-captcha-solver
  4.  
  5. Download python and pycharm, no need to download pychan and selenium separately as you can install them from within pycharm after you make a new project
  6. Download tampermonkey for your browser and then install the captcha solver from github (it's the .js file if that's not obvious)
  7.  
  8. Make a new pycharm project and install pycharm and selenium with the new project open
  9. Delete all the contents of the 'main.py' file so that it's completely empty, if there is no 'main.py' create it in the main project folder yourself (from within pycharm)
  10. Take the contents of the other pastbin file and copy it into the now empty main.py file
  11. Unzip the image archive from dropbox into the project folder
  12. Your project folder should now have a main.py file, venv folder, and 14 folders with the names of the EN members
  13.  
  14. BEG_DELAY = time between posts (not counting some smaller waits also included to give the captcha solver/your connection time) (line 17)
  15. BEG_DELAY_FACTOR = variable used to modify BEG_DELAY based on how many posts have been added to the thread since the last bot post (line 18)
  16. Bigger BEG_DELAY_FACTOR = bigger BEG_DELAY = slower posting
  17. Smaller BEG_DELAY_FACTOR = smaller BEG_DELAY = faster posting
  18.  
  19. You need to replace every instance of 'user' in the directory names with whatever your username shows up as in your windows install
  20. Also replace 'ENggarBot' with whatever you named your project
  21.  
  22. This version will use whatever the default profile on chrome is on your system, if you want it to use a different browser you need to fuck around with lines 79-83
  23.  
  24. This current version will not add text to image posts, instead it just posts images until image limit and then it starts copypastaing from /vt/ without images
  25. If you want it to add text to image posts, you need to scroll down to the main loop (everything after line 322 the line that reads 'while True:') and then:
  26. Delete the line that reads 'if IMG_GENKAI_TOPPA:' (line 338)
  27. Change the indentation of the following three lines so that they line up properly with the 4th line (that reads 'else:') (339-341 need to line up with 342)
  28. Delete the that 4th line that reads ('else:') and replace it with 'if not IMG_GENKAI_TOPPA:' (line 342)
  29.  
  30. I did not yet test the sub-loop in find_vt_threads() (line 142) for searching for the Amelia thread so I don't know if it actually works or not, it's currently commented out (disabled)
  31.  
  32. If you add more than 200 images to any of the EN member folders you need to raise the value of 'bigrange' accordingly (line 39)
  33.  
  34. You need to make one post manually before starting the script to get captcha solver to work, or at least I had to in my own attempts
  35. Usually it will find a new thread on its own without you again manually posting unless you get banned in which case you need to clear cookies
Add Comment
Please, Sign In to add comment