Scraping data instagram - Unusual Login Attempt alert The 2019 Stack Overflow Developer Survey Results Are InWeb scraping, How to submit an aspx form in python 2.7?What's the best way of scraping data from a website?Is it ok to scrape data from Google results?Python instagram scrape suggestionsWait for data from external API before making POST requestInstagram data scraping/crawlingNightwatch enable to detect inputs in InstagramPuppeteer Login to InstagramHow to select a DOM Element to scroll on it in Puppeteerscraping data from table in node js

Patience, young "Padovan"

Are there any other methods to apply to solving simultaneous equations?

Does duplicating a spell with Wish count as casting that spell?

What is the best strategy for white in this position?

What do hard-Brexiteers want with respect to the Irish border?

Should I use my personal or workplace e-mail when registering to external websites for work purpose?

Why is Grand Jury testimony secret?

Is three citations per paragraph excessive for undergraduate research paper?

How to answer pointed "are you quitting" questioning when I don't want them to suspect

Manuscript was "unsubmitted" because the manuscript was deposited in Arxiv Preprints

I see my dog run

Access elements in std::string where positon of string is greater than its size

In microwave frequencies, do you use a circulator when you need a (near) perfect diode?

"To split hairs" vs "To be pedantic"

Which Sci-Fi work first showed weapon of galactic-scale mass destruction?

Is "plugging out" electronic devices an American expression?

Realistic Alternatives to Dust: What Else Could Feed a Plankton Bloom?

Understanding the implication of what "well-defined" means for the operation in quotient group

What do the Banks children have against barley water?

Deadlock Graph and Interpretation, solution to avoid

Landlord wants to switch my lease to a "Land contract" to "get back at the city"

Falsification in Math vs Science

Is this food a bread or a loaf?

Could a US political party gain complete control over the government by removing checks & balances?



Scraping data instagram - Unusual Login Attempt alert



The 2019 Stack Overflow Developer Survey Results Are InWeb scraping, How to submit an aspx form in python 2.7?What's the best way of scraping data from a website?Is it ok to scrape data from Google results?Python instagram scrape suggestionsWait for data from external API before making POST requestInstagram data scraping/crawlingNightwatch enable to detect inputs in InstagramPuppeteer Login to InstagramHow to select a DOM Element to scroll on it in Puppeteerscraping data from table in node js



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








-1















I'm junior developer and i'm trying to build a bot. My bot can access instagram by my account and follow my friends. However I'm getting this problem.



screenshot



I'm using nodejs including puppeteer package. Thanks for you help with my problem.



const robotic = async (req, res) => 
const browser = await puppeteer.launch(
headless: false
);
const page = await browser.newPage();
await page.setViewport(width: 1920, height: 1080);
await page.goto('https://www.instagram.com/accounts/login');
await page.waitForSelector('input[name="username"]');
await page.waitForSelector('input[name="password"]');
await page.waitForSelector('button[type="submit"]');
await page.type('input[name="username"]', process.env.USERNAME);
await page.type('input[name="password"]', process.env.PASSWORD);
await page.click('button[type="submit"]');
await page.waitForNavigation();
await page.waitFor(6000)
await browser.close();










share|improve this question






























    -1















    I'm junior developer and i'm trying to build a bot. My bot can access instagram by my account and follow my friends. However I'm getting this problem.



    screenshot



    I'm using nodejs including puppeteer package. Thanks for you help with my problem.



    const robotic = async (req, res) => 
    const browser = await puppeteer.launch(
    headless: false
    );
    const page = await browser.newPage();
    await page.setViewport(width: 1920, height: 1080);
    await page.goto('https://www.instagram.com/accounts/login');
    await page.waitForSelector('input[name="username"]');
    await page.waitForSelector('input[name="password"]');
    await page.waitForSelector('button[type="submit"]');
    await page.type('input[name="username"]', process.env.USERNAME);
    await page.type('input[name="password"]', process.env.PASSWORD);
    await page.click('button[type="submit"]');
    await page.waitForNavigation();
    await page.waitFor(6000)
    await browser.close();










    share|improve this question


























      -1












      -1








      -1








      I'm junior developer and i'm trying to build a bot. My bot can access instagram by my account and follow my friends. However I'm getting this problem.



      screenshot



      I'm using nodejs including puppeteer package. Thanks for you help with my problem.



      const robotic = async (req, res) => 
      const browser = await puppeteer.launch(
      headless: false
      );
      const page = await browser.newPage();
      await page.setViewport(width: 1920, height: 1080);
      await page.goto('https://www.instagram.com/accounts/login');
      await page.waitForSelector('input[name="username"]');
      await page.waitForSelector('input[name="password"]');
      await page.waitForSelector('button[type="submit"]');
      await page.type('input[name="username"]', process.env.USERNAME);
      await page.type('input[name="password"]', process.env.PASSWORD);
      await page.click('button[type="submit"]');
      await page.waitForNavigation();
      await page.waitFor(6000)
      await browser.close();










      share|improve this question
















      I'm junior developer and i'm trying to build a bot. My bot can access instagram by my account and follow my friends. However I'm getting this problem.



      screenshot



      I'm using nodejs including puppeteer package. Thanks for you help with my problem.



      const robotic = async (req, res) => 
      const browser = await puppeteer.launch(
      headless: false
      );
      const page = await browser.newPage();
      await page.setViewport(width: 1920, height: 1080);
      await page.goto('https://www.instagram.com/accounts/login');
      await page.waitForSelector('input[name="username"]');
      await page.waitForSelector('input[name="password"]');
      await page.waitForSelector('button[type="submit"]');
      await page.type('input[name="username"]', process.env.USERNAME);
      await page.type('input[name="password"]', process.env.PASSWORD);
      await page.click('button[type="submit"]');
      await page.waitForNavigation();
      await page.waitFor(6000)
      await browser.close();







      node.js web-scraping nodes puppeteer






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 12 at 8:09









      NoriSte

      1,248199




      1,248199










      asked Mar 8 at 8:49









      Khoa MaiKhoa Mai

      65




      65






















          1 Answer
          1






          active

          oldest

          votes


















          0














          There's nothing wrong in your code itself, Instagram is telling you what's happening, let's examine it:



          • you are writing a Puppeteer bot that accesses your Instagram profile

          • you run and re-run and re-run your script while you're writing the Puppeteer script

          • since Puppeteer is a standard browser, Instagram treat this kind of accesses as standard user login tries

          • so much login tries in a limited time could be suspicious (what kind of standard user tries to log in to Instagram ten times in a couple of minutes?)

          • so Instagram, protecting your account, prevents any additional login tries and wants you to verify that you aren't a malicious bot or a user that has stolen your password

          Probably you get the same error from Instagram if you manually open an incognito page, you log in, you close the page and you re-do the same.



          Not all sites allow you to build bots that consumes them and they do that to protect the users 😉






          share|improve this answer























          • Thanks for your reply so much. I got it now.

            – Khoa Mai
            Mar 11 at 7:54












          • Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

            – NoriSte
            Mar 11 at 7:56











          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059601%2fscraping-data-instagram-unusual-login-attempt-alert%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          There's nothing wrong in your code itself, Instagram is telling you what's happening, let's examine it:



          • you are writing a Puppeteer bot that accesses your Instagram profile

          • you run and re-run and re-run your script while you're writing the Puppeteer script

          • since Puppeteer is a standard browser, Instagram treat this kind of accesses as standard user login tries

          • so much login tries in a limited time could be suspicious (what kind of standard user tries to log in to Instagram ten times in a couple of minutes?)

          • so Instagram, protecting your account, prevents any additional login tries and wants you to verify that you aren't a malicious bot or a user that has stolen your password

          Probably you get the same error from Instagram if you manually open an incognito page, you log in, you close the page and you re-do the same.



          Not all sites allow you to build bots that consumes them and they do that to protect the users 😉






          share|improve this answer























          • Thanks for your reply so much. I got it now.

            – Khoa Mai
            Mar 11 at 7:54












          • Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

            – NoriSte
            Mar 11 at 7:56















          0














          There's nothing wrong in your code itself, Instagram is telling you what's happening, let's examine it:



          • you are writing a Puppeteer bot that accesses your Instagram profile

          • you run and re-run and re-run your script while you're writing the Puppeteer script

          • since Puppeteer is a standard browser, Instagram treat this kind of accesses as standard user login tries

          • so much login tries in a limited time could be suspicious (what kind of standard user tries to log in to Instagram ten times in a couple of minutes?)

          • so Instagram, protecting your account, prevents any additional login tries and wants you to verify that you aren't a malicious bot or a user that has stolen your password

          Probably you get the same error from Instagram if you manually open an incognito page, you log in, you close the page and you re-do the same.



          Not all sites allow you to build bots that consumes them and they do that to protect the users 😉






          share|improve this answer























          • Thanks for your reply so much. I got it now.

            – Khoa Mai
            Mar 11 at 7:54












          • Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

            – NoriSte
            Mar 11 at 7:56













          0












          0








          0







          There's nothing wrong in your code itself, Instagram is telling you what's happening, let's examine it:



          • you are writing a Puppeteer bot that accesses your Instagram profile

          • you run and re-run and re-run your script while you're writing the Puppeteer script

          • since Puppeteer is a standard browser, Instagram treat this kind of accesses as standard user login tries

          • so much login tries in a limited time could be suspicious (what kind of standard user tries to log in to Instagram ten times in a couple of minutes?)

          • so Instagram, protecting your account, prevents any additional login tries and wants you to verify that you aren't a malicious bot or a user that has stolen your password

          Probably you get the same error from Instagram if you manually open an incognito page, you log in, you close the page and you re-do the same.



          Not all sites allow you to build bots that consumes them and they do that to protect the users 😉






          share|improve this answer













          There's nothing wrong in your code itself, Instagram is telling you what's happening, let's examine it:



          • you are writing a Puppeteer bot that accesses your Instagram profile

          • you run and re-run and re-run your script while you're writing the Puppeteer script

          • since Puppeteer is a standard browser, Instagram treat this kind of accesses as standard user login tries

          • so much login tries in a limited time could be suspicious (what kind of standard user tries to log in to Instagram ten times in a couple of minutes?)

          • so Instagram, protecting your account, prevents any additional login tries and wants you to verify that you aren't a malicious bot or a user that has stolen your password

          Probably you get the same error from Instagram if you manually open an incognito page, you log in, you close the page and you re-do the same.



          Not all sites allow you to build bots that consumes them and they do that to protect the users 😉







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 11 at 6:19









          NoriSteNoriSte

          1,248199




          1,248199












          • Thanks for your reply so much. I got it now.

            – Khoa Mai
            Mar 11 at 7:54












          • Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

            – NoriSte
            Mar 11 at 7:56

















          • Thanks for your reply so much. I got it now.

            – Khoa Mai
            Mar 11 at 7:54












          • Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

            – NoriSte
            Mar 11 at 7:56
















          Thanks for your reply so much. I got it now.

          – Khoa Mai
          Mar 11 at 7:54






          Thanks for your reply so much. I got it now.

          – Khoa Mai
          Mar 11 at 7:54














          Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

          – NoriSte
          Mar 11 at 7:56





          Nice 😊 do you need anything more? Otherwise, accept my answer, it could be helpful to other users 😉

          – NoriSte
          Mar 11 at 7:56



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55059601%2fscraping-data-instagram-unusual-login-attempt-alert%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

          Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

          Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved