question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tiktok is detecting puppeteer-extra-plugin-stealth

See original GitHub issue

Hi everyone,

I’m curently working on a tiktok scraper, using the stealth plugin from the begining of it, but today when i’m trying to go on a tiktok profile i’m getting this:

Capture d’écran 2020-06-05 à 13 00 01

Any Idea how to fix it ?

For the code i’m using (code for testing the connection):

const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth')
var fs = require("fs");

(async () => {
    try {
      puppeteer.use(StealthPlugin())
      var browser = await puppeteer.launch({
          headless: false,
        });
      var page = await browser.newPage();
      await page.goto(`https://www.tiktok.com/@miss_extra2.0`);
      await page.waitFor(50000)
      await browser.close();
    } catch (err) {
      await browser.close();
    }
  })();

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:16 (2 by maintainers)

github_iconTop GitHub Comments

15reactions
vityas-offcommented, Jun 22, 2020

Somehow i ended with this

const puppeteer = require("puppeteer-extra");
const stealthPlugin = require("puppeteer-extra-plugin-stealth")();

["chrome.runtime", "navigator.languages"].forEach(a =>
  stealthPlugin.enabledEvasions.delete(a)
);

puppeteer.use(stealthPlugin);

main();
async function main() {
  const browser = await puppeteer.launch();
  const page = await browser.newPage();

  await page.evaluateOnNewDocument(() => {
    delete navigator.__proto__.webdriver;
  });

  await page.goto(`https://www.tiktok.com/@miss_extra2.0`);
  await page.screenshot({ path: "./11.png" });
  browser.close();
}
9reactions
txrp0x9commented, Jun 6, 2020

Google Chrome seems to be detected by sites lately. Using puppeteer-firefox is a good way to scrape Tiktok. Hoping someone could find out why chrome lets sites know about automation as this is only a temporary fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Puppeteer to sign into TikTok - node.js - Stack Overflow
I guess thay detect the number of log ins for that spesific username and password. If you tried to log in multiple times...
Read more >
tiktok-captcha-solver - npm Package Health Analysis - Snyk
Solves the TikTok captcha interactively using playwright or puppeteer. For more information about how to use this package see README.
Read more >
Puppeteer-extra-plugin-stealth NPM
A plugin for puppeteer-extra and playwright-extra to prevent detection. Install. yarn add puppeteer-extra-plugin-stealth # - or - ...
Read more >
Location information on TikTok
You can choose to delete this data at any time. To delete your location data from your TikTok account: 1. In the TikTok...
Read more >
Tiktok down? Current problems and outages - Downdetector
Real-time problems and outages for Tiktok. ... Methodology page to learn more about how Downdetector collects status information and detects problems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found