INNER CODE UNIT · TypeScript

navigateToUser

mifi/instauto · src/index.ts:425

  async function navigateToUser(username: string) {
    if (isAlreadyOnUserPage(username)) return true;

    // logger.log('navigating from', page.url(), 'to', url);
    logger.log(`Navigating to user ${username}`);

    const url = getUserPageUrl(username);
    const status = await gotoWithRetry(url);
    if (status === 404) {
      logger.warn('User page returned 404');
      return false;
    }

    if (status === 200) {
      // logger.log('Page returned 200 ☑️');
      // some pages return 200 but nothing there (I think deleted accounts)
      // https://github.com/mifi/SimpleInstaBot/issues/48
      // example: https://www.instagram.com/victorialarson__/

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…