Skip to content

Instantly share code, notes, and snippets.

@dsetareh
Created May 28, 2021 14:30
Show Gist options
  • Save dsetareh/5c1c016e4b048df632ce460230e770e0 to your computer and use it in GitHub Desktop.
Save dsetareh/5c1c016e4b048df632ce460230e770e0 to your computer and use it in GitHub Desktop.
lazy script to dl the smallest torrents on jpopsuki
from webbot import Browser
import time
# lazy script to dl the smallest torrents on jpopsuki
web = Browser()
web.go_to('https://jpopsuki.eu/login.php')
web.type('username', into='Username')
web.type('password', into='Password')
web.click('Log In!')
web.go_to('https://jpopsuki.eu/torrents.php')
time.sleep(1)
web.click('Disable Grouping')
time.sleep(1)
print('sorting by size low -> high')
web.click('Size')
time.sleep(1)
web.click('Size')
while True:
time.sleep(1)
i = 1
while i < 50:
print("Clicking [" + str(i) + " - " + str(i + 5) + "]")
web.click('DL', number=i)
web.click('DL', number=i + 1)
web.click('DL', number=i + 2)
web.click('DL', number=i + 3)
web.click('DL', number=i + 4)
time.sleep(1)
i += 5
print("Next Page")
web.click('Next >')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment