This script monitors a specific Skype chat for incoming messages, extracts any YouTube links, and saves them to a file named youtube_links.txt
.
- Connects to a Skype account using the
skpy
library. - Monitors a specified Skype chat for new messages.
- Extracts YouTube links from the messages using a regular expression.
- Saves the extracted YouTube links to a text file.
- Python 3.x
skpy
library
-
Clone the repository:
git clone https://github.com/yourusername/skype-youtube-link-extractor.git cd skype-youtube-link-extractor
-
Install the required libraries:
pip install skpy
-
Update the script with your Skype credentials and the Skype chat ID:
from skpy import Skype from getpass import getpass import re sk = Skype("your skype nic", getpass(), "token.txt") ch = sk.chats["person nic"]
-
Run the script:
python skype_youtube_link_extractor.py
-
The script will continuously monitor the specified Skype chat for new messages and save any extracted YouTube links to
youtube_links.txt
.
If you would like to contribute to this project, please fork the repository and submit a pull request.
This project is licensed under the MIT License.