Nyumat / The-TikTok-Bot

The Home of the TikTokBot. Created to help creators programmatically generate views/shares on their content.
Other
87 stars 22 forks source link

Incorporate Beautiful Soup to break down the HTML for autoViews.py & TikTikBot.py #5

Closed Nyumat closed 4 years ago

Nyumat commented 4 years ago

Unfortunately the Selenium version right now can't fix "bad" html code (unclosed tags, badly quoted attributes, invalid HTML) so I rather use bs4 to parse it so we can read and access the data, namely the button elements.

Nyumat commented 4 years ago

For autoViews.py, I read some more of the selenium documentation and found a function to get the visible text from the dropdown instead of parsing the HTML through bs4 so I re-wrote the code last night and solved that.

For TikTokBot.py, the ReCAPTCHA V2 has no direct bypass right now through selenium, so I'm deciding to limit the bot at the add views page endpoint for mytoolstown.com so that once the user # of specified tabs are open, they simply do the CAPTCHA's themselves for each tab, which is still quite fast. Like 30k views a minute fast.