translated

This commit is contained in:
geekpi 2018-04-09 08:38:21 +08:00
parent a169404429
commit 0818ec5496
2 changed files with 66 additions and 69 deletions

View File

@ -1,69 +0,0 @@
translating---geekpi
How To Use Instagram In Terminal
======
![](https://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-720x340.png)
Instagram doesnt need introduction. It is one of a popular social network platform, like Facebook and Twitter, to share photos and videos either publicly or privately to pre-approved followers. It was launched in 2010 by two entrepreneurs namely **Kevin Systrom** and **Mike Krieger**. In 2012, the social network giant Facebook has acquired Instagram. Instagram is available for free on Android and iOS devices. We can also use it in desktop systems via a web browser. And, the cool thing is now you can use Instagram in Terminal on any Unix-like operating systems. Are you excited? Well, read on to know how to view your Instagram feed on your Terminal.
### Instagram In Terminal
First, install **pip3** as described in the following link.
Then, git clone the repository of “instagram-terminal-news-feed” script.
```
$ git clone https://github.com/billcccheng/instagram-terminal-news-feed.git
```
The above command will clone the contents of instagram script in a directory named “instagram-terminal-news-feed” in your current working directory. Cd to that directory:
```
$ cd instagram-terminal-news-feed/
```
Then, run the following command to install instagram terminal feed:
```
$ pip3 install -r requirements.txt
```
Now, run the following command to launch instagram in terminal in your Linux box.
```
$ python3 start.py
```
Enter your Instagram username and password and browse your Instagram feed right from the Terminal. Your instragram username and password will only be stored locally in the file called **credential.json**. So, you dont need to worry about it. You can also just dont save your credentials which is the default option.
Here is some screenshots of [**My Instagram page**][1].
![][3]
![][4]
![][5]
Please note that you can only view your feed. You cant follow anyone, like or comment posts. This is just a instagram feed reader.
This project is freely available on GitHub, so you can view the source code, improve it, add more features, fix any bugs if there are any.
Have fun! Cheers!!
--------------------------------------------------------------------------------
via: https://www.ostechnix.com/how-to-use-instagram-in-terminal/
作者:[SK][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
选题:[lujun9972](https://github.com/lujun9972)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:https://www.ostechnix.com/author/sk/
[1]:https://www.instagram.com/ostechnix/
[3]:http://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-1.png
[4]:http://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-2.png
[5]:http://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-3-2.png

View File

@ -0,0 +1,66 @@
如何在终端中使用 Instagram
======
![](https://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-720x340.png)
Instagram 不需要介绍。它是像 Facebook 和 Twitter 之类的流行社交网络平台之一,它可以公开或私下分享照片和视频给确认过的粉丝。它是由两位企业家于 2010 年发起的,分别是 **Kevin Systrom** and **Mike Krieger**。2012 年,社交网络巨头 Facebook 收购了 Instagram。Android 和 iOS 设备上免费提供 Instagram。我们也可以通过网络浏览器在桌面系统中使用它。而且最酷的是现在你可以在任何类 Unix 操作系统上的终端中使用 Instagram。你兴奋了吗那么请阅读以下内容了解如何在终端上查看你的Instagram feed。
### 终端中的 Instagram
首先,按照以下链接中的说明安装 **pip3**
然后git clone “instagram-terminal-news-feed” 脚本仓库。
```
$ git clone https://github.com/billcccheng/instagram-terminal-news-feed.git
```
以上命令会将 instagram 脚本的内容克隆到当前工作目录中名为 “instagram-terminal-news-feed” 的目录中。cd 到该目录:
```
$ cd instagram-terminal-news-feed/
```
然后,运行以下命令安装 instagram 终端 feed
```
$ pip3 install -r requirements.txt
```
现在,运行以下命令在 Linux 终端中启动 instagram。
```
$ python3 start.py
```
输入你的 Instagram 用户名和密码,并直接从终端中浏览你的 Instagram feed。你的 instragram 用户名和密码将仅本地存储在名为 **credential.json** 的文件中。所以,你不必担心它。你也可以选择不保存默认保存的凭证。
下面是[**我的 Instagram 页面**][1]的一些截图。
![][3]
![][4]
![][5]
请注意,你只能查看你的 feed。你不能关注任何人喜欢或评论帖子。这只是一个 instagram feed 阅读器。
该项目可在 GitHub 上免费获得,因此你可以查看源代码,改进它,添加更多功能,修复任何 bug。
玩得开心!干杯!!
--------------------------------------------------------------------------------
via: https://www.ostechnix.com/how-to-use-instagram-in-terminal/
作者:[SK][a]
译者:[geekpi](https://github.com/geekpi)
校对:[校对者ID](https://github.com/校对者ID)
选题:[lujun9972](https://github.com/lujun9972)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:https://www.ostechnix.com/author/sk/
[1]:https://www.instagram.com/ostechnix/
[3]:http://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-1.png
[4]:http://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-2.png
[5]:http://www.ostechnix.com/wp-content/uploads/2018/03/instagram-in-terminal-3-2.png