Skip to content

Instantly share code, notes, and snippets.

/**
* Basic structure: TC_Class is the public class that is returned upon being called
*
* So, if you do
* var tc = $(".timer").TimeCircles();
*
* tc will contain an instance of the public TimeCircles class. It is important to
* note that TimeCircles is not chained in the conventional way, check the
* documentation for more info on how TimeCircles can be chained.
*
-q "query" - Search term
-p 1 - <optional> number of pages to scrape (50 results per page)
-r playlist,channel - <optional> recursively extract videos from channels or playlists, default is off (be careful some channels / playlists may have thousands of videos, api is slow to process all)
--headers true - print with headers or not (false value)
Examples:
prints to console itself:
python youtube_search.py -q "async await" -p 1 -r playlist --headers false
const path = require('path');
const fs = require('fs');
const Web3 = require('web3');
const abiDecoder = require('abi-decoder');
const openseaAbi = require('./opensea-abi');
const EtherscanApi = require('etherscan-api');
const {Sequelize, DataTypes} = require('sequelize');
/*
xeno