youtube-recommendation-scraper

1.2.1 • Public • Published

What is this

This is a micro-library that scrapes the recommended ids off of youtube.

It is a compoentn of a larger project to redesign the youtube homepage to minimize its distracting power

Most functionality is is in the scrape-recommendations.ts library

  • uses cypress for e2e tests
  • uses jest for unit and integreation tests

Here are all the exports from index.tsx

export {VideoInfo, MaybeVideoInfo, ScrapedVideoInfo, FailedVideoInfo} from './types';
export {ALL_VIDEO_ID_LOCAL_STORAGE_NAME} from './constants';

export {
  retrieveAllIdList,
  saveAllIdList,
  appendToAllIdList,
  saveAllVideoInfoList,
  retrieveAllVideoInfoList,
} from './store-ids';

export {
  extractAllRecommendationIds,
  retrievePageHtml,
} from './scrape-recommendations';

export {
  fetchVideoInfoGroupFromHomePage,
  fetchAllVideoInfoGroupsFromHomePage,
  fetchAndSetVideoInfoGroup,
  fetchInfoFromIds,
} from './fetch-info-from-ids';

notes

Readme

Keywords

none

Package Sidebar

Install

npm i youtube-recommendation-scraper

Weekly Downloads

5

Version

1.2.1

License

Apache-2.0

Unpacked Size

4.92 MB

Total Files

45

Last publish

Collaborators

  • khalfaniw