G
G
Grisha Pechenegov2020-10-27 05:46:35
Google
Grisha Pechenegov, 2020-10-27 05:46:35

Is it possible using JS to write a function for automatic requests through Google and their output as a list?

Good afternoon!

Bottom line: there is a YT playlist, it has deleted videos, I'm tired of looking for them by highlighting the video ID and searching them in Google.

I want to understand if it is possible to create something like this in JS:
-saving a playlist as a list of page addresses;
- extracting only the video ID from these lines -
forming this ID as a list
- throwing each ID from the list into the search engine and returning the first three results from google.

In what direction to move? What APIs, Frameworks do you need to study?

Thanks in advance, don't be too offended, I just started.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
marshadow, 2020-10-27
@marshadow

There is a limitation in browsers, it seems to be called CORS. It is possible to send requests from a site / html page to some site, if only that site allowed sending these requests there. You can parse without frameworks and APIs, but YouTube has its own API, with which you can probably get a playlist list. For parsing, it is better to use python and a bunch of requests + BS

P
Puma Thailand, 2020-10-27
@opium

Yes, of course you can, it's easier on naked zhs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question