Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/toomore/xig

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/toomore/xig

  • v0.0.0-20171111065155-fe652a094cb4
  • Source
  • Go
  • Socket score

Version published
Created
Source

xig

To fetch instagram user img, content, avatar data.

install

go get -v -a -u github.com/toomore/xig

Usage

xig [options] {username}

Options:
  -a    Get all data
  -c int
		concurrency nums (default cpuNums*20)
  -d int
		Delay to start, in seconds
  -f    Find deleted
  -i    Quick look recently data
  -t    Show httptrace info
  -u    Login someone to see private data

To fetch recently img(12), avatar and content

xig {username}

To fetch ALL images data (if user uploaded more, may slow)

xig -a {username}

Print recently data

xig -i {username}
+----------------------------------------------------+
Code: https://www.instagram.com/p/{code}
Date: {date} IsVideo: {true|false}
Caption: {caption}
DisplaySrc: {url}

To find some deleted content

xig -f {username}

Some users turn to private account, using -u to login user account for fetch private data. (required setting environment variables in IGUSER, IGPASS, and cookies file will save as cookies.gob)

xig -u {username}

Fetch folder

./{username}
├── profile
│   └── {username}_{hash}.txt    // user profile, biography
├── avatar
│   ├── {username}_{hash}.jpg    // user avatar image
│   └── (...).jpg                // and more ... if put `xig` into cron jobs
├── content
│   ├── {date}_{code}_{id}.json  // json files, for some day `xig` reuse
│   └── {date}_{code}_{id}.txt   // for human readable content
└── img
    ├── {code}_{hash}.jpg        // user uploaded images
    └── (...).jpg                // and more ...

Note

  • All images will try to fetch original size.
  • Private user need setting IGUSER, IGPASS and using -u. Cookies file will save as cookies.gob
  • Content's readable date is in RFC3339 format.
  • instagram won't to ban ip, may CDN doesn't check.
  • xig's code base are not pretty, I will make it pretty :)

Tips

For crontab, every 1m to fetch

*/1 * * * * cd ~/{some folder}; ({$go_bin_path}/xig {username} 2>&1) >> ./{username}.log

For crontab, using -d for delay fetch.

*/1 * * * * cd ~/{some folder}; ({$go_bin_path}/xig -d 30 {username} 2>&1) >> ./{username}.log

FAQs

Package last updated on 11 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc