Skip to content

Instantly share code, notes, and snippets.

View debuti's full-sized avatar
😀

Borja Garcia debuti

😀
  • Spain
View GitHub Profile
from bs4 import BeautifulSoup
import requests
page_link ='https://www.website_to_crawl.com'
# fetch the content from url
page_response = requests.get(page_link, timeout=5)
# parse html
page_content = BeautifulSoup(page_response.content, "html.parser")
# extract all html elements where price is stored
prices = page_content.find_all(class_='main_price')
@steven2358
steven2358 / ffmpeg.md
Last active November 5, 2025 23:32
FFmpeg cheat sheet
@shadiakiki1986
shadiakiki1986 / README.md
Last active July 27, 2021 18:08
Wrap "dbxcli get" command to download files from a dropbox dir
@rust-play
rust-play / playground.rs
Created February 28, 2019 14:00
Code shared from the Rust Playground
use std::time::Duration;
use std::thread;
use std::sync::atomic::{AtomicBool, Ordering};
use std::sync::Arc;
use std::sync::mpsc::channel;
fn long_running_function(x: u64, shared: &AtomicBool) -> Option<u64> {
for i in 0..x {
if shared.load(Ordering::Relaxed) {
@gmag11
gmag11 / [email protected]
Last active March 27, 2024 04:01
Mount multiple RClone remotes on boot with a single SystemD forking service definition
# Rclone mount on boot
# Copy file to: /etc/systemd/system
# You need to create a remote on RClone and a folder on your disk, both with same name <rclone-remote>
# This example uses /cloud/ folder as origin to mount all remotes, change it to your needs
# This example use a linux user named rclone. Create it or adapt it to your needs. Rclone will get config from that user's home folder
# Register new service by typing:
# sudo systemctl daemon-reload
# Do the next one for every remote you want to load on boot
# sudo systemctl enable rclone-mount@<rclone-remote>.service
# systemctl start rclone-mount@<rclone-remote>.service
@rust-play
rust-play / playground.rs
Created October 9, 2019 13:47
Code shared from the Rust Playground
#![allow(dead_code)]
use std::cell::RefCell;
#[derive(Debug)]
struct Ctx {
mult: i32,
items: RefCell<Vec<i32>>,
}
fn work(x: &Ctx, i: &mut i32) {