Skip to content

Instantly share code, notes, and snippets.

View Marwyk2003's full-sized avatar

Marcin Wykpis Marwyk2003

  • Katowice, Poland
View GitHub Profile
@Marwyk2003
Marwyk2003 / maze_generator.py
Last active August 27, 2022 15:26
Maze generation algorithm using iterative dfs
from random import shuffle
def generate_maze(X, Y):
'''
Generate a maze and return its walls
Return type (x_walls, y_walls)
x_walls/y_walls - bool array, True = wall, False = no wall
x_walls/y_walls ordered from left to right / top to bottom
'''
@Marwyk2003
Marwyk2003 / lyrics-playerctl.py
Last active July 15, 2021 22:49
Get lyrics for currently playing music using playerctl.
#!/usr/bin/env python3
import subprocess
import requests
import re
import webbrowser
class Site:
def __init__(self, url, separator):
@Marwyk2003
Marwyk2003 / web-scraping.md
Created June 28, 2021 15:13
Basic web scraping cheat sheet

Basic web scraping cheat sheet

Configuration

$ pip3 install requests
$ pip3 install beautifulsoup4

Retrievieng Raw HTML

import requests
URL = 'WEBSITE-URL-ADRESS'

Keybase proof

I hereby claim:

  • I am marwyk2003 on github.
  • I am marwyk (https://keybase.io/marwyk) on keybase.
  • I have a public key ASAJUutzU7zu6nwnP7nntH3rgkjZ559asVTbWKwVp-r-pwo

To claim this, I am signing this object: