Edit the shell script.

This commit is contained in:
EvanLi committed 2019-04-23 20:07:30 +08:00
1 parent c55d07bfdc
commit 94c225c51d
4 files changed
+12 -7

No files matched your search

+1
View File
@@ -1 +1,2 @@
access_token.txt
.ipynb_checkpoints
-7
View File
@@ -1,7 +0,0 @@
git pull
python save_most_stars_forks.py
git add .
set today=%date:~0,4%-%date:~5,2%-%date:~8,2%
git commit -m "Auto update %today%."
git push origin master
ping 127.0.0.1 -n 6 > nul
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# crontab auto run this file
cd /home/li/code/github/Github-Ranking
git pull
python save_most_stars_forks.py
git add .
today=`date +"%Y-%m-%d"`
git commit -m "Auto update $today."
git push origin master
+2
View File
@@ -163,6 +163,8 @@ def save_to_csv(repos_stars,repos_forks,repos_languages):
print('Save data to Data/github-ranking-'+save_date+'.csv')
if __name__=="__main__":
os.chdir('/home/li/code/github/Github-Ranking')
languages = ["ActionScript","C","CSharp","CPP","Clojure","CoffeeScript","CSS","Go","Haskell","HTML","Java","JavaScript","Lua","MATLAB","Objective-C","Perl","PHP","Python","R","Ruby","Scala","Shell","Swift","TeX","Vim-script"]
languages_md = ["ActionScript","C","C\#","C\+\+","Clojure","CoffeeScript","CSS","Go","Haskell","HTML","Java","JavaScript","Lua","MATLAB","Objective\-C","Perl","PHP","Python","R","Ruby","Scala","Shell","Swift","TeX","Vim script"]