Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/MShawon/YouTube-Viewer
- Loading branch information
Showing
3 changed files
with
121 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: GitHub Clone Count for 14 days at every 24 hours | ||
|
||
# Controls when the action will run. | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
# This workflow contains a single job called "build" | ||
build: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps represent a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Parse clone count using REST API | ||
run: | | ||
curl --user "${{ github.actor }}:${{ secrets.SECRET_TOKEN }}" \ | ||
-H "Accept: application/vnd.github.v3+json" \ | ||
https://api.github.com/repos/${{ github.repository }}/traffic/clones \ | ||
> clone.json | ||
- name: Add to git repo | ||
run: | | ||
git add . | ||
git config --global user.name "GitHub Action" | ||
git config --global user.email "action@github.com" | ||
git commit -m "Automated clone.json update" | ||
- name: Push | ||
uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
{ | ||
"count": 141, | ||
"uniques": 107, | ||
"clones": [ | ||
{ | ||
"timestamp": "2021-01-18T00:00:00Z", | ||
"count": 7, | ||
"uniques": 7 | ||
}, | ||
{ | ||
"timestamp": "2021-01-19T00:00:00Z", | ||
"count": 7, | ||
"uniques": 7 | ||
}, | ||
{ | ||
"timestamp": "2021-01-20T00:00:00Z", | ||
"count": 11, | ||
"uniques": 7 | ||
}, | ||
{ | ||
"timestamp": "2021-01-21T00:00:00Z", | ||
"count": 8, | ||
"uniques": 7 | ||
}, | ||
{ | ||
"timestamp": "2021-01-22T00:00:00Z", | ||
"count": 12, | ||
"uniques": 11 | ||
}, | ||
{ | ||
"timestamp": "2021-01-23T00:00:00Z", | ||
"count": 9, | ||
"uniques": 8 | ||
}, | ||
{ | ||
"timestamp": "2021-01-24T00:00:00Z", | ||
"count": 16, | ||
"uniques": 13 | ||
}, | ||
{ | ||
"timestamp": "2021-01-25T00:00:00Z", | ||
"count": 10, | ||
"uniques": 8 | ||
}, | ||
{ | ||
"timestamp": "2021-01-26T00:00:00Z", | ||
"count": 14, | ||
"uniques": 13 | ||
}, | ||
{ | ||
"timestamp": "2021-01-27T00:00:00Z", | ||
"count": 7, | ||
"uniques": 5 | ||
}, | ||
{ | ||
"timestamp": "2021-01-28T00:00:00Z", | ||
"count": 5, | ||
"uniques": 5 | ||
}, | ||
{ | ||
"timestamp": "2021-01-29T00:00:00Z", | ||
"count": 11, | ||
"uniques": 11 | ||
}, | ||
{ | ||
"timestamp": "2021-01-30T00:00:00Z", | ||
"count": 16, | ||
"uniques": 10 | ||
}, | ||
{ | ||
"timestamp": "2021-01-31T00:00:00Z", | ||
"count": 8, | ||
"uniques": 6 | ||
} | ||
] | ||
} |
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This script doesn't work on windows python i installed but i can't run it on windows. Good job
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what do you mean this doesn't work? Show pictures of errors you have encountered. What python version you installed?
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Speak to me . Go to my profile and you have the page listed there. I assure you that you have such contact .You are doing a good job anyway. And I would like to ask you to contact me, go to my profile and there you have FB contact for me
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Python 3.x pip Screenshot https://galaxyfm.de/ssss.png
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just run this
pip install -r requirements.txt
Then try again
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something like this pops up https://galaxyfm.de/1.png
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try this
pip install --upgrade setuptools
if this doesn't work follow this:
benfred/implicit#76
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did as you wrote. I gave the command and again a problem. https://galaxyfm.de/2.png
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to install Microsoft Visual C++ Build Tools
Follow these answers please:
benfred/implicit#76
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And now the problem with that on screan chrome I installed the same as the chromedriver.
And I get such a problem with the python test.py command.
https://galaxyfm.de/3.png
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
chromedriver_win32
is this folder empty?fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the browser download is the same as chromedriver and it is in this directory c:\YouTube-Viewer\chromedriver_win32\
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh man did you install Google Chrome in your operating system?
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Google Chrome
Version 88.0.4324.146 (Official Version) (64 bit). Windows 10.
chromedrive doesn't have to do this :(
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did everything as shown in the picture.
But I have a question if I have to have anything turned off. Because the script works but doesn't add viewers. I entered the url youtube address but it doesn't add What should I have turned on, what should I turn off because it doesn't add viewers.
fc85a83
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.