newstlastlist / GuruShots-auto-Voter

GuruShots free fills
35 stars 15 forks source link

Script is auto joining challenges #15

Open sbursik opened 3 years ago

sbursik commented 3 years ago

The script will randomly join challenges. In one night I have seen it join as many as 5-6.

noverotajs commented 3 years ago

I confirm. I have the same issue

freccia72 commented 3 years ago

I confirm. Same issue

maatt commented 3 years ago

I confirm. Same issue

I confirm. I have the same issue

The script will randomly join challenges. In one night I have seen it join as many as 5-6.

https://github.com/maatt/GuruShots-auto-Voter/blob/master/GuruShitsAutoLike.js

give this a try and let me know.

freccia72 commented 3 years ago

I judo solved i cani share the solution with you

Inviato da Alessandro via Iphone

Il giorno 15 mar 2021, alle ore 00:39, Matt @.***> ha scritto:

 I confirm. Same issue

I confirm. I have the same issue

The script will randomly join challenges. In one night I have seen it join as many as 5-6.

https://github.com/maatt/GuruShots-auto-Voter/blob/master/GuruShitsAutoLike.js

give this a try and let me know.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

sbursik commented 3 years ago

Please do share! I'd love to know the solution. I've stopped using the script because it was joining too many

On Sun, Mar 14, 2021 at 7:33 PM freccia72 @.***> wrote:

I judo solved i cani share the solution with you

Inviato da Alessandro via Iphone

Il giorno 15 mar 2021, alle ore 00:39, Matt @.***> ha scritto:

 I confirm. Same issue

I confirm. I have the same issue

The script will randomly join challenges. In one night I have seen it join as many as 5-6.

https://github.com/maatt/GuruShots-auto-Voter/blob/master/GuruShitsAutoLike.js

give this a try and let me know.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/newstlastlist/GuruShots-auto-Voter/issues/15#issuecomment-799014118, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACKV2TY3JAAAKKW6B57DDQTTDVIUTANCNFSM4XNZD6UQ .

--

freccia72 commented 3 years ago

Hi Scott, basically I find the way to close the windows before start the challenge voting. I premise is the first time that I use this language, I did all by analize the script and inspecting the web page. At the end here with you find the code added.

-I count the number of challenge suggested and push all close button before start counting the challenge. Why challenge suggested has been open? Cause the script at the end push submit that is the same button in challenge suggested -I added the swap windows close that someone post before me.+

The challenge suggestion works well I am using from two weeks ago.To check when the challenge suggested appear refresh the page after the script start and you will see them disappear. For swap I am sure.

You find modification in bold yellow.

Have fun

const puppeteer = require('puppeteer');

async function main() { const browser = await puppeteer.launch({ headless: false, dumpio: false, devtools: false });

const page = await browser.newPage(); await page.setViewport({width: 1200, height: 720}) await page.goto('https://gurushots.com/', {waitUntil: 'networkidle0'}); const login = '#dialogContent_0 > md-dialog-content > form > div:nth-child(1) > input'; const password = '#dialogContent_0 > md-dialog-content > form > div:nth-child(2) > input'; const loginSubmit = '#dialogContent_0 > md-dialog-content > form > button'

const CREDS = require('./LoginData');

await page.evaluate(async () => { const loginBtn = document.querySelectorAll('header gs-header div > div > protection:nth-child(1) a'); for (var btn of loginBtn) { const style = getComputedStyle(btn);

     if (style.display !== 'none') {
        await btn.click();
        break;
     }
  }

})

await page.click(login); await page.waitForTimeout(300); await page.keyboard.type(CREDS.login); await page.waitForTimeout(300); await page.click(password); await page.keyboard.type(CREDS.password); await page.click(loginSubmit); await page.waitForNavigation();

await page.waitForTimeout(9000);

await page.evaluate(async () => { const LetsGo = document.getElementsByClassName('modal-votegreeting'); const voteBtns = document.getElementsByClassName('icon-vote-negative'); const boostBtns = document.getElementsByClassName('boost-state-available'); const clchBtns = document.getElementsByClassName('icon-close'); const closeBtns = document.getElementsByClassName('c-cardsclose');

  for (var btn of closeBtns) {
     $(btn).click();
     await new Promise(resolve => setTimeout(resolve, 1000));
  }

// try to boost //if (boostBtns.length >= 1) { // for (var btn of boostBtns) { // $(btn).click(); // await new Promise(resolve => setTimeout(resolve, 4000)); // const picForVote = document.querySelector('div.c-modal-boost__photos > div:nth-child(1)'); // $(picForVote).click(); // await new Promise(resolve => setTimeout(resolve, 4000));

  // }

// } }); await browser.close(); await console.log('Voting Done'); }

main();

Il giorno lun 15 mar 2021 alle ore 02:35 Scott Bursik < @.***> ha scritto:

Please do share! I'd love to know the solution. I've stopped using the script because it was joining too many

On Sun, Mar 14, 2021 at 7:33 PM freccia72 @.***> wrote:

I judo solved i cani share the solution with you

Inviato da Alessandro via Iphone

Il giorno 15 mar 2021, alle ore 00:39, Matt @.***> ha scritto:

 I confirm. Same issue

I confirm. I have the same issue

The script will randomly join challenges. In one night I have seen it join as many as 5-6.

https://github.com/maatt/GuruShots-auto-Voter/blob/master/GuruShitsAutoLike.js

give this a try and let me know.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub < https://github.com/newstlastlist/GuruShots-auto-Voter/issues/15#issuecomment-799014118 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACKV2TY3JAAAKKW6B57DDQTTDVIUTANCNFSM4XNZD6UQ

.

--

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/newstlastlist/GuruShots-auto-Voter/issues/15#issuecomment-799031691, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATECNNBORNLLSF7DSAKODJTTDVP6HANCNFSM4XNZD6UQ .

cbarroso76 commented 3 years ago

I use an app called gurushutters you can download in playstore ,only available in android ,it's great you can choose contests to vote ,see statistics,etc.try it ,and free

maatt commented 3 years ago

OP doesn't seem active on this project so it's hard to get updates here;

I have started a new repository and shared my personal edit of the script, it runs headless, with console output of each stage, runs every 30 minutes.. also uses nodemon so if the script crashes it will restart.

alt text https://github.com/maatt/gurushots-auto-vote-and-boost