Coder Social home page Coder Social logo

webistomin / nanogram.js Goto Github PK

View Code? Open in Web Editor NEW
63.0 3.0 7.0 5.49 MB

:camera: An easy-to-use and simple Instagram package that allows you to fetch media content without API and access token.

Home Page: https://nanogram-js.now.sh/

License: MIT License

JavaScript 6.22% TypeScript 93.67% Shell 0.12%
instagram instagram-scraper instagram-photos instagram-feed instagram-api instagram-downloader instafeed instafeed-js

nanogram.js's Introduction

-environment

My home config, scripts and installation process

nanogram.js's People

Contributors

allcontributors[bot] avatar dependabot-preview[bot] avatar dependabot[bot] avatar webistomin avatar yusufkhan07 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nanogram.js's Issues

XMLHttpRequest not defined

Just Tried the post id example and got this error:
(node:13776) UnhandledPromiseRejectionWarning: ReferenceError: XMLHttpRequest is not defined

the first thing I did was to install hmlhttprequest manually with npm, but no changes....

Class methods tree-shaking

Tree-shaking class methods in general is a difficult task (example). It would be great to rewrite this library on to simple functions since they're much easier to statically analyse.

So instead of loading 2.3Kb JS, you will get small 300-500b functions

Profile picture

Is there a way to get my profile picture with nanogram.js

Nanogram stopped working (Cannot read property '0' of undefined)

Describe the bug
I was just working with this nice library, and after a new reload, it just stopped working. Since I haven't changed my code regarding the library, I took a look at the demo again, and the same error appears there in the console as well:

TypeError: Cannot read property '0' of undefined at r.<anonymous> (nanogram.iife.min.js:5) at nanogram.iife.min.js:5 at Object.next (nanogram.iife.min.js:5) at l (nanogram.iife.min.js:5)

Just 2 hours ago, the demo was working.

If I would have to guess, I would say that Instagram again changed something (again) in their setup, and since (correct me if I'm wrong) this Library acts more like a crawler, their changes probably broke it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://nanogram-js.now.sh/
  2. Check Console
  3. See error

Desktop (please complete the following information):

  • Desktop, Chrome, 1.0.2 Version of this library

Unable to commit anything in the repo due to husky failure

Describe the bug
I cloned the repository and made a few changes in the code. I've installed all the dependencies.
I'm able to stage code changes in git but when I execute git commit, I get the following output:

โ†“ Skipped because of errors from tasks. [SKIPPED]   
                                                                                                                                                                                    
other:eslint:write failed without output (ENOENT).                                                                  
husky > pre-commit hook failed (add --no-verify to bypass)   

It seems like lint-staged is unable to find the task other:eslint:write.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the repo.
  2. Install dependencies using npm i
  3. Edit code.
  4. Git Add .
  5. Git commit -m "Some commit message"

Expected behavior
lint-stage is already setup in the project so it should be able to find the tasks mentioned in the config file.

how to get next page?

Is your feature request related to a problem? Please describe.
hot to get next page?

Describe the solution you'd like
i want to get next page of user media only 12 item returned by getMediaByUsername

Describe alternatives you've considered
n/p
Additional context
n/p

Module not found: Recursion in resolving

Describe the bug
for fix need replace all dist/ to ./dist/ in package.json

Sorry i cant make PR

Screenshots
Screenshot from 2020-05-21 10-09-41
Screenshot from 2020-05-21 10-09-34

Desktop (please complete the following information):

  • OS: linux
  • Browser: chrome
  • Version: 79

Network has been temporary banned because of too many requests

Hi, I tried to getMediaByTag and always return this message...
Error: [nanogram.js] It looks like your network has been temporary banned because of too many requests.

error_nanogram

Exists any way to skip this block? Proxy? Or another way?

I'm using CDN version 3..

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/nanogram.iife.js"></script>

My code is the same then examples..

`const getMediaByTag = window.Nanogram.getMediaByTag

getMediaByTag('sunset').then((media) => {
console.log(media);
});`

Thank You

Reel Download

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Can you add support to download instagram Reels

Plugin stopped working overnight

Good morning, how are you? hope so!
We used this library in some projects, and it has satisfied us very well, but it has been a few days since the plugin is simply not working anymore, we have the habit of using it by CDN, I noticed that 5 days ago there was an update, possibly it reason for stopping the plugin in our projects, was there a big change in the last update?
Thanks in advance for your attention.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.