Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - olexander

Pages: [1]
1
Hello, apologize if this is incorrect action here :)
I am with help of google search and google gemini try make python script for scrapping mod files from site to m3u(direct url links for mod files) to listen directly at media players.
Here example for "Counrty" genre
Code: [Select]
base_url = 'https://modarchive.org/index.php?query=18&request=search&search_type=genre&'Here two pages - so
Code: [Select]
num_pages = 2make changes and launch(i am at linux)
Code: [Select]
./<namescript>.py > country.m3uwait, ok, add country.m3u to your madia player, bit wait for loading, try listen :)

Code: [Select]
#!/usr/bin/env python3

import requests
from bs4 import BeautifulSoup



def scrape_urls(base_url, num_pages):
  all_urls = []
  for page in range(1, num_pages + 1):
    url = f"{base_url}page={page}#mods"  # Adjust URL pattern as needed
    response = requests.get(url)
    soup = BeautifulSoup(response.text, 'html.parser')

    links = soup.find_all('a')
    for link in links:
      href = link.get('href')
      if href and href.startswith('https:'):

        all_urls.append(href)

  return all_urls

# Example usage
# chillout
# base_url = 'https://modarchive.org/index.php?query=106&request=search&search_type=genre&'
# minimal
# base_url = 'https://modarchive.org/index.php?query=101&request=search&search_type=genre&'
# country
base_url = 'https://modarchive.org/index.php?query=18&request=search&search_type=genre&'
num_pages = 2
all_urls = scrape_urls(base_url, num_pages)
for url in all_urls:
    print(url)

2
The Lobby / Re: How sorting downloaded music by genre?
« on: October 31, 2022, 23:06:09 »
Ok, thank you! :)
OpenMPT is great tool, but why it only for Windows? What is alternative for OpenMPT on Linux?

3
The Lobby / Re: How sorting downloaded music by genre?
« on: October 30, 2022, 02:45:18 »
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker
Offtop.
I see you are an experienced tracker musician :)
Can You suggest me good tutorials for making track music using openmpt?

4
The Lobby / Re: How sorting downloaded music by genre?
« on: October 28, 2022, 22:42:21 »
Thanks! :)
And is the way to find at web music by genres? Example - metal genre is interesing to me now ;)

5
The Lobby / Re: How sorting downloaded music by genre?
« on: October 25, 2022, 22:51:21 »
Thanks for replys all :)
Its bit sadly because no option to organize or sorting music and listening one by one here :-\

Can you suggest how you listening mod music? What players using and how organize yours playlists?

6
The Lobby / How sorting downloaded music by genre?
« on: October 20, 2022, 19:05:24 »
Hello! ;)
Can i ask?
1. How sort downloaded via torrent archives music by genre for sequence listening?
2. How listen music automatically sequence using online player, one by one, sorted by genre, like radio, without random pick?
Is it possible?

Kind regards Olexander :)

Pages: [1]