malomehi / acestream-search

Simple tool to scrape acestream links from HTML content
GNU General Public License v3.0
5 stars 1 forks source link

How can I add other URLs? #56

Closed TokyoghoulEs closed 4 months ago

TokyoghoulEs commented 4 months ago

How can I add other URLs?

malomehi commented 4 months ago

Can you provide an example of URL to add? This application only works with a given specific server although it accepts alternative URLs for the same server. Would your URL point to the same server that this application uses? Otherwise it would not work unless the html content structure is exactly the same.

TokyoghoulEs commented 4 months ago

They are URLs that I maintain.

They do not have the same structure, it is simpler

https://testaplicacion.webcindario.com/index_c.html

https://testaplicacion.webcindario.com/

The categories of the last url are the following

categorias = { 'BEACHSOCCER': 'Futbol Playa', 'MOTOGP': 'MotoGP', 'PADDLE': 'Pádel', 'SOCCER': 'Futbol', 'SPORTS': 'Deportes', 'TENNIS': 'Tenis', 'SYNCHRONIZED SWIMMING': 'Natación Sincronizada', 'SNOOKER': 'Billar', 'BASEBALL': 'Béisbol', 'VOLLEYBALL': 'Voleibol', 'MOTORCYCLING': 'Motociclismo', 'F1': 'Fórmula 1', 'MMA': 'Artes Marciales Mixtas', 'UFC': 'UFC', 'GOLF': 'Golf', 'EVENT': 'Evento', 'MOTOR': 'Motor', 'MOTOS': 'Motocicletas', 'RUGBY': 'Rugby', 'TENIS': 'Tenis', 'FORMULA 1': 'Fórmula 1', 'VOLLEYBALL (W)': 'Voleibol (F)', 'ATHLETICS': 'Atletismo', 'BASKETBALL (W)': 'Baloncesto (F)', 'SWIMMING': 'Natación', 'BADMINTON': 'Bádminton', 'HANDBALL': 'Balonmano', 'MOTORSPORT': 'Automovilismo', 'SWIMMING (W)': 'Natación (F)', 'SWIMMING(W)': 'Natación (F)', 'FOOTBALL': 'Futbol', 'BASKETBALL': 'Baloncesto', 'FORMULA1': 'Fórmula 1', 'GYMNASTICS TRAMPOLINE': 'Gimnasia Trampolín', 'BALONCESTO': 'Baloncesto', 'MOTOCYCLING': 'Motociclismo', 'BEACH SOCCER': 'Futbol Playa', 'MIXEDMARTIALARTS': 'Artes Marciales Mixtas', 'VOLLEYBALL(W)': 'Voleibol (F)', 'BASKETBALL(W)': 'Baloncesto (F)', 'CURLING': 'Curling', 'SOCCER(W)': 'Futbol (F)', 'CYCLING': 'Ciclismo', 'BOXING': 'Boxeo', 'SOCCER (W)': 'Futbol (F)', 'EVENTS': 'Eventos', 'FUTSAL': 'Futbol Sala', 'BOBSLEIGH': 'Bobsleigh', 'WRESTLING': 'Lucha Libre' }

TokyoghoulEs commented 4 months ago

utc Europe/Madrid

https://time.is/es/Madrid

malomehi commented 4 months ago

Unfortunately this application cannot scrape those websites as their content is totally different to the websites used by this application.

The only thing I can suggest to you is to take a look at the logic that scrapes the website content in this application and maybe try to code your own app based on this one. That logic is mainly implemented in this file: https://github.com/malomehi/acestream-search/blob/master/acestream_search/events/__init__.py.

The content structure in the websites that you posted is much simpler so the logic would be much simpler too. The logic in that file may be useful for you, as you can find some of the main things that you will need (http requests, soup parsing, etc.). If you re-implement that part according to the content in those websites you will probably be able to use most of the rest of the application (for the user interface, command line tool, adb commands, etc.).

If you manage to do that please mention this repo in your credits ;-)

TokyoghoulEs commented 4 months ago

thank you so much