Answer the question
In order to leave comments, you need to log in
How to write a program to search for information on sites?
Good day, friends. I wondered: how to search for the information you need on certain sites? For example: I want to find an audio called "Noname - 123123", I go to Google and type this name into the search engine, after which I get countless results. My goal is to write a program that will search for this track on certain sites that you specify (for example, soundcloud, zaycev net, zk fm, etc.) in a .txt file. How to implement it? Or maybe there are already ready-made options?
Answer the question
In order to leave comments, you need to log in
You should set a goal to "learn the basics of programming".
Is this where you need to look for a track on sites or in a .txt file?
You can search for a track on sites in different ways, for example, parse site data by understanding its structure. The site can provide an API for developers - that would be ideal.
It is impossible to write a universal program that searches for a track on any sites specified by the user.
If we talk about Google, then he has some DSL for building search queries. This DSL has a site operator that can be used to restrict the sites that will be searched.
For example: Java site: habrahabr.ru. Such a query will return all pages of Habr on which the word Java occurs.
By the way, on the same hub there is an article describing many operators for searching on Google.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question