mirror of
https://github.com/EvanLi/Github-Ranking.git
synced 2026-11-04 15:00:06 +00:00
Edit the shell script.
This commit is contained in:
1 parent
c55d07bfdc
commit
94c225c51d
4 files changed
+12
-7
No files matched your search
@@ -1 +1,2 @@
|
||||
access_token.txt
|
||||
.ipynb_checkpoints
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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"]
|
||||
|
||||
|
||||
Reference in new issue
Block a user