An open API service indexing awesome lists of open source software.

https://github.com/bluecube246/youtube-comment-deleter

Created a program to remove YouTube scam comments stating that you have won a prize and to cover shipping expenses on Telegram or Whatsapp.
https://github.com/bluecube246/youtube-comment-deleter

Last synced: 3 months ago
JSON representation

Created a program to remove YouTube scam comments stating that you have won a prize and to cover shipping expenses on Telegram or Whatsapp.

Awesome Lists containing this project

README

          

# Youtube Comment Deleter

Created a program to remove YouTube scam comments stating that you have won a prize and to cover shipping expenses on Telegram or Whatsapp.

## Extracting comments from Youtube via channel id.

```
python3 youtube.py --channel_id channelId --n number_of_videos
```

## Label Data

Label all of the spam comments saved in the youtube_data directory to TRUE. All of the comments are by default false.

image

## Convert labeled data to BIO format

```
python3 convert_bio.py --input_file data_dir --output_dir model_input_location
```

## Train model

```
python3 main.py --task youtube --model_dir youtube_model do_train = True do_eval = True
```

## Delete comments (Run evaluation)

```
python3 delete_comments.py --model_dir youtube_model --channel_id channelID --use_channel_id True
python3 delete_comments.py --model_dir youtube_model --video_id videoID --use_channel_id False
```

> Using the channel id will retrived the latest video in the specified channel.

## References

- [Huggingface Transformers](https://github.com/huggingface/transformers)
- [pytorch-crf](https://github.com/kmkurn/pytorch-crf)