Created
October 23, 2021 17:07
-
-
Save theDreamer911/d885cc5029372e494ef5a07b4b9c4f83 to your computer and use it in GitHub Desktop.
this extended version of youtube comment scrapper python modules
This file contains hidden or 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
from youtube_comment_scraper_python import * | |
import pandas as pd | |
link = input("Youtube links: ") | |
saved = input("Output name: ") | |
youtube.open(link) | |
response = youtube.video_comments() | |
data = response['body'] | |
df = pd.DataFrame(data) | |
df.to_csv(saved) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
One question, newbie here. When I run the code it mention an error on line 9:
data = response['body']
It says:
TypeError: 'NoneType' object is not subscriptable
What can I do?