https://github.com/ronething/ins-tool-server
instagram 链接🔗解析 server
https://github.com/ronething/ins-tool-server
Last synced: 10 months ago
JSON representation
instagram 链接🔗解析 server
- Host: GitHub
- URL: https://github.com/ronething/ins-tool-server
- Owner: ronething
- Created: 2019-04-14T12:44:55.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-02T06:00:37.000Z (over 3 years ago)
- Last Synced: 2025-05-18T04:36:20.541Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ins-tool-server
## Introduction
ins 图片默认是下载不了的。so 解析一下
## Run
```
git clone [repo]
pipenv shell
```
在 `app/config` 目录下新建 `secure.py`
```python
import os
from dotenv import load_dotenv
load_dotenv()
environ = os.getenv('FLASK_ENV', 'development')
MY_HEADERS = {
'Referer': 'https://www.instagram.com/',
'User-Agent': '',
}
if environ == 'production':
MY_PROXIES = {}
else:
MY_PROXIES = {
'http': 'socks5://host:port',
'https': 'socks5://host:port'
}
```
然后
```
pipenv shell
python manage.py
```
## Deployment
### 这次使用的是 Heroku Git 部署
- 首先安装 [heroku cli](https://devcenter.heroku.com/articles/heroku-cli)
- 项目根目录下创建 `Procfile`
- `heroku create your-app`
- `heroku config:set FLASK_ENV=production`
- `git add . && git commit -m "xxx" && git push heroku master`
- 等待构建完成,访问网址即可
## Demo Site
- [ins](http://ins.ronething.com)
## Change Log
- Sun Apr 14 22:02:50 first version
## Acknowledgement
- [you-get](https://github.com/soimort/you-get)
- [Instagram_crawler](https://github.com/linqingmaoer/Instagram_crawler)