Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toomore/xig
🐾 To fetch instagram user img, content, avatar data.
https://github.com/toomore/xig
avatar instagram
Last synced: about 21 hours ago
JSON representation
🐾 To fetch instagram user img, content, avatar data.
- Host: GitHub
- URL: https://github.com/toomore/xig
- Owner: toomore
- License: mit
- Created: 2016-12-19T07:09:40.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-11-11T06:52:24.000Z (about 7 years ago)
- Last Synced: 2024-07-30T19:12:21.384Z (6 months ago)
- Topics: avatar, instagram
- Language: Go
- Homepage:
- Size: 34.2 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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 dataTo 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