- Python 3
- Pip 3
$ brew install python3| from bs4 import BeautifulSoup | |
| vk_audios_file = 'audios.html' # SET YOUR FILE NAME | |
| soup = BeautifulSoup(open(vk_audios_file, encoding='ISO-8859-1'), 'lxml') | |
| songs = [song.get_text() for song in soup.find_all("div", {"class": "audio__title"})] | |
| def revert(songname): | |
| song = None | |
| if (len(songname.split(' –')) > 1): | |
| song = songname.split(' –')[1] + ' - ' + songname.split('– ')[0] |
| user www-data; | |
| worker_processes auto; | |
| pid /run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; |
| # If you come from bash you might have to change your $PATH. | |
| export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH | |
| # Path to your oh-my-zsh installation. | |
| export ZSH=/Users/nikitapopov/.oh-my-zsh | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-zsh is loaded. | |
| # See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
| # ZSH_THEME="robbyrussell" |
| { | |
| "text": "text", | |
| "children": [ | |
| { | |
| "text": "text", | |
| "children": [ | |
| { | |
| "text": "text", | |
| "children": [ | |
| { |