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
| Array.from(document.querySelectorAll('.edit-detailed-section *')).filter(el => { | |
| if(el.style["background-color"] === 'rgb(255, 255, 255)' || el.style["background-color"] === 'white'){ | |
| el.style["background-color"] = ''; | |
| } | |
| }); | |
| //Remove any color | |
| Array.from(document.querySelectorAll('.edit-detailed-section *')).filter(el => { | |
| if(el.style["background-color"]){ |
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
| import requests | |
| import json | |
| API_KEY = 'YOUR_YOUTUBE_API_KEY' | |
| VIDEO_IDS = ['1Ds2G7lcrxA', 'AnotherVideoID', ...] # Replace with your list of video IDs | |
| BASE_URL = "https://www.googleapis.com/youtube/v3/videos" | |
| def get_video_details(video_id): | |
| params = { | |
| 'part': 'snippet', |
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 bs4 import BeautifulSoup | |
| import csv | |
| # Load the content from the HTML file | |
| with open('input.html', 'r', encoding='utf-8') as file: | |
| content = file.read() | |
| soup = BeautifulSoup(content, 'lxml') | |
| # Prepare a list to hold the extracted data |
OlderNewer