Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Contains several useful features that can be used for youtube related projects. This package is intended to provide useful features for video editing, including crawling through the YouTube Data API v3 and Selenium.
pip install youtuber
from youtuber import AutoCrawler
DEVELOPER_KEY = "enter_your_dev_api_key" # Enter your DEV API KEY at https://console.cloud.google.com/apis/api/youtube.googleapis.com/credentials?project=sincere-canyon-278402
CHOROME_PATH = r'C:\Program Files\chromedriver.exe' # Enter path of 'chromdriver.exe'
auto = AutoCrawler(DEVELOPER_KEY, CHOROME_PATH)
search_keyword = 'chatGPT' # Youtube Search Keyword
max_link_len = 2 # How many videos you target to crawl?
max_comment_pg_len = 2 # How many comment pages you target to crawl?
save_path = './enter/any/path/result.csv'
df = auto.run(search_keyword, max_link_len, max_comment_pg_len, save_path)
YoutubeAPI
Retrieve YouTube search results.
You can get your 'Youtube Data API v3' key in here, and you can find some guide in here.
from youtuber import YoutubeAPI
DEVELOPER_KEY = "enter_your_api_key"
youtuber_v3 = YoutubeAPI(DEVELOPER_KEY)
links = youtuber_v3.get_links('chatGPT', 3) #YouTube Search Keyword = 'chatGPT', return 3 links.
links
['https://www.youtube.com/watch?v=xxxxx',
'https://www.youtube.com/watch?v=xxxxx',
'https://www.youtube.com/watch?v=xxxxx']
YoutubeCrawler
Retrieve comment data.
from youtuber import YoutubeCrawler
chrome_driver = r'C:\Program Files\chromedriver.exe'
youtuber_crawl = YoutubeCrawler(chrome_driver)
df = youtuber_crawl.get_comment_df(links, 1) #if you enter 1, only 1 page of comments will be searched.
df #You can get pd.DataFrame object.
[1] YouTube Data API v3: https://developers.google.com/youtube/v3/getting-started?hl=ko
[2] Selenium python: https://selenium-python.readthedocs.io/
Important Warning:
All legal responsibilities associated with the use of the package lie with the user.The Python package "youtuber" provides code for Python users to easily access data through the YouTube Data API v3 and Selenium. All licenses follow those of the API and dependent packages, and all responsibility for handling data and using the package lies with the user. There is no monetary compensation received for the use of this code, and it should be noted that there is no liability for the use of the code.
FAQs
Support tools including crawler, video editing, YouTube API, etc.
We found that youtuber demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.