mirror of
https://github.com/bellingcat/youtube-comment-scraper.git
synced 2026-06-07 19:18:31 +03:00
Updated scraper.py, Updated README.md, Added requirements.txt
This commit is contained in:
47
README.md
47
README.md
@@ -1,2 +1,47 @@
|
||||
# YouTube-Comment-Scraper
|
||||
A script to scrape youtube comments and checks whether a user commented on two or all of the given videos
|
||||
A script to scrape youtube comments and checks whether a user commented on the given videos
|
||||
|
||||
# Installation
|
||||
**1. Clone the project**
|
||||
```
|
||||
git clone https://github.com/rly0nheart/YouTube-Comment-Scraper.git
|
||||
```
|
||||
|
||||
**2. Move to YouTube-Comment-Scraper directory**
|
||||
```
|
||||
cd YouTube-Comment-Scraper
|
||||
```
|
||||
|
||||
**3. Install dependencies**
|
||||
## Note
|
||||
```
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
|
||||
# Usage
|
||||
```
|
||||
python scraper.py <youtube_video_url_1> <youtube_video_url_2> <youtube_video_url_3>
|
||||
```
|
||||
|
||||
> *Alternatively, you could grant execution permission to the downloader and run it as shown below*
|
||||
|
||||
**1. Grant execution permission**
|
||||
```
|
||||
chmod +x scraper.py
|
||||
```
|
||||
|
||||
**2. Run scraper.py**
|
||||
```
|
||||
./scraper.py <youtube_video_url_1> <youtube_video_url_2> <youtube_video_url_3>
|
||||
```
|
||||
|
||||
## Note
|
||||
> Upon run, the scraper will first check for updates. If found, users will be prompted to download the updates
|
||||
|
||||
# Donations
|
||||
If you would like to donate, you could Buy A Coffee for the developer using the button below
|
||||
|
||||
<a href="https://www.buymeacoffee.com/189381184" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
|
||||
|
||||
Your support will be much appreciated!
|
||||
|
||||
|
||||
1
requirements.txt
Normal file
1
requirements.txt
Normal file
@@ -0,0 +1 @@
|
||||
youtube-comment-downloader
|
||||
@@ -53,12 +53,7 @@ def find_multiple_authors(video_urls):
|
||||
|
||||
if __name__ == '__main__':
|
||||
parser = argparse.ArgumentParser(prog='scraper.py')
|
||||
parser.add_argument('videos', choices=['youtube_video_url_1', 'youtube_video_url_2', 'youtube_video_url_3'])
|
||||
parser.add_argument('videos', nargs='+', help='List of YouTube video urls')
|
||||
args = parser.parse_args()
|
||||
vids = [
|
||||
'https://www.youtube.com/watch?v=C1Gn85NKrCU',
|
||||
'https://www.youtube.com/watch?v=UMzKD73cs3c',
|
||||
'https://www.youtube.com/watch?v=e7VOQ1l20eo'
|
||||
]
|
||||
find_multiple_authors(args.videos)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user