scrapelicious 0 Posted June 28, 2018 Report Share Posted June 28, 2018 (edited) Hi Guys,I created a small Upvote bot but It's not fully automated yet and I need some help.It is for an adult project of mine on Pornhub.I want the bot to search for a username below a video and upvote its comment.I noticed that when I select the upvote button of a comment from a specific person it gives it an ID and it works to actually upvote via ubot.But, how can I scrape the web page for a specific username and upvote its comment automatically?I don't know if it's a problem to link to NSFW content so I'd rather not do it. We also must be able to use Reddit as an example: https://www.reddit.com/r/AskReddit/comments/7fm8c2/you_get_to_choose_a_skill_at_which_you_will_be/Let's say I want to search for user "orange_blanket" on the page and I want to upvote its comment?How do I do that in an automated way? Hope someone can help me out, thx! Edited June 28, 2018 by scrapelicious Quote Link to post Share on other sites
hare ram 23 Posted June 28, 2018 Report Share Posted June 28, 2018 As you given this link https://www.reddit.com/r/AskReddit/comments/7fm8c2/you_get_to_choose_a_skill_at_which_you_will_be/ and in search bar when you put orange_blanket and search then see in html page every results there have own link you have to scrape these all url and store in a list and navigate it to one by one in loop and in loop total field take list total function and select that list name in which you store that scraped link.After that navigate it one by one link and you can do upvote in all results. Quote Link to post Share on other sites
scrapelicious 0 Posted June 28, 2018 Author Report Share Posted June 28, 2018 (edited) Many thanks for your reply, but my question is not yet answered. Can you give me an example with some uBot code? Also, I cannot find an up vote link when doing upvotes, I don't see that on Reddit or PH, it seems like it always is a piece Java Code. Edited June 28, 2018 by scrapelicious Quote Link to post Share on other sites
hare ram 23 Posted June 28, 2018 Report Share Posted June 28, 2018 (edited) navigate("https://www.reddit.com/r/AskReddit/search?q=orange_blanket&restrict_sr=1","Wait")wait(5)type text(<name="q">,"orange_blanket","Standard")add list to list(%url,$scrape attribute($element offset(<class="_2XDITKxlj4y3M99thqyCsO">,0),"fullhref"),"Delete","Global")set(#row,0,"Global")loop($list total(%url)) { navigate($list item(%url,#row),"Wait") click($element offset(<class="icon icon-upvote _2Jxk822qXs4DaXwsN7yyHA">,24),"Left Click","No") increment(#row)} This code can help you but not exact what you want you can scrape all link by regular expression or element you select unique element first you check in debugger that all link scraped or not then after you can process in loop. Edited June 28, 2018 by hare ram Quote Link to post Share on other sites
bestmacros 60 Posted June 28, 2018 Report Share Posted June 28, 2018 fg Quote Link to post Share on other sites
bestmacros 60 Posted June 28, 2018 Report Share Posted June 28, 2018 https://drive.google.com/file/d/1a3moVC-mkr-srNhkuKmrz1rsYdV7y-bq/view?usp=sharing can't post code for some reason so here is the link to code example image Quote Link to post Share on other sites
scrapelicious 0 Posted June 28, 2018 Author Report Share Posted June 28, 2018 Thanks for the replies, @bestmacros can you paste it in here and share the url? https://justpaste.it/ I cannot recreate it, at least it does not scrape something.. What does it do, what is the goal of your code? To create a list and use the up vote from it? Quote Link to post Share on other sites
bestmacros 60 Posted June 28, 2018 Report Share Posted June 28, 2018 Thanks for the replies, @bestmacros can you paste it in here and share the url?https://justpaste.it/ I cannot recreate it, at least it does not scrape something..What does it do, what is the goal of your code? To create a list and use the up vote from it? yes - you scrape html and then just loop and upvote Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.