Skip to content

Commit

Permalink
fix readme since need token to read
Browse files Browse the repository at this point in the history
  • Loading branch information
renan028 committed Jun 1, 2020
1 parent c3d2b9b commit bf45611
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@ Python3 and PyGithub:
# How to use
Navigate to the folder Miron-Insights and run:

`python3 insights.py "username" "password"`
`python3 insights.py "token"`

Replace "username" and "password" with your info.

You should get something like this, in terminal:

`['Unique Views', 4, 8, 3, 5, 1, 0, 0]
['Views Count', 59, 51, 18, 13, 4, 0, 0]
['Unique Clones', 1, 0, 5, 1, 1, 0, 0]
`['Unique Views', 4, 8, 3, 5, 1, 0, 0]
['Views Count', 59, 51, 18, 13, 4, 0, 0]
['Unique Clones', 1, 0, 5, 1, 1, 0, 0]
['Views Count', 59, 51, 18, 13, 4, 0, 0]`

It also generates a .csv file with the total. The csv file's name is current date and the results have 1 week timestamp.

# How to make a Token

Follow the link bellow:
[Token Documentation](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line)

Make sure to tick the "read" access.

0 comments on commit bf45611

Please sign in to comment.