getHashtagPosts not working properly #16

Closed
opened 2 years ago by Ghost · 0 comments
Ghost commented 2 years ago

I am trying to use pagination to get multiple posts based on hashtags. however, when I try to fetch using

InstaClient.getHashtagPosts(hashtag, maxCount, pageId)
  .then((posts) => console.log(posts))
  .catch((err) => console.error(err));

It throws an error saying

TypeError: Cannot read property '1' of null
    at Insta._getQueryHashs (/home/scrapers/insta-scrape/node_modules/scraper-instagram/index.js:326:57)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Insta.getHashtagPosts (/home/scrapers/insta-scrape/node_modules/scraper-instagram/index.js:414:7)

Although, I've fixed it by commenting the story option in queryHash, I'm getting limited posts in response. I want to scrape 100+ posts using hashtags. The doc says authentication needed but how to add it here in this function?

Kindly help me with this.

I am trying to use pagination to get multiple posts based on hashtags. however, when I try to fetch using ``` InstaClient.getHashtagPosts(hashtag, maxCount, pageId) .then((posts) => console.log(posts)) .catch((err) => console.error(err)); ``` It throws an error saying ``` TypeError: Cannot read property '1' of null at Insta._getQueryHashs (/home/scrapers/insta-scrape/node_modules/scraper-instagram/index.js:326:57) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async Insta.getHashtagPosts (/home/scrapers/insta-scrape/node_modules/scraper-instagram/index.js:414:7) ``` Although, I've fixed it by commenting the `story` option in queryHash, I'm getting limited posts in response. I want to scrape 100+ posts using hashtags. The doc says `authentication needed` but how to add it here in this function? Kindly help me with this.
Ghost changed title from `getHashtagPosts` not working to `getHashtagPosts` not working properly 2 years ago
KaKi87 closed this issue 2 years ago
This repo is archived. You cannot comment on issues.
No Milestone
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: KaKi87/scraper-instagram-v1#16
Loading…
There is no content yet.