Skip to content

Instantly share code, notes, and snippets.

/*
* Created by Bilal Elmoussaoui <bil.elmoussaoui@gmail.com>
*/
use failure::Error;
use std::collections::HashMap;
pub fn parse_content(content: &str, schema: &str) -> Result<HashMap<String, String>, Error> {
let mut output: HashMap<String, String> = HashMap::new();
@bilelmoussaoui
bilelmoussaoui / eztv.py
Created December 31, 2017 15:51
eztv torrent scrapper
from bs4 import BeautifulSoup
import requests
url = "https://eztv.yt/search/avengers-assemble"
season_nr = 4
start_episode = 1
end_episode = 13
# Created by newuser for 5.3.1
export PATH=$PATH':/home/bilal/.gem/ruby/2.4.0/bin'
export ZSH=/usr/share/oh-my-zsh
export DISABLE_AUTO_UPDATE=true
export ZSH_CACHE_DIR=$HOME/.cache/oh-my-zsh
export EDITOR=nano
export CODACY_PROJECT_TOKEN=4bcdaabed0c4459eba03cc0c6156315c
fpath=(~/.zsh/completion $fpath)
# compsys initialization
@bilelmoussaoui
bilelmoussaoui / github.py
Last active May 12, 2017 21:54
Manage your labels
import requests
from urllib.parse import urlencode
import logging
ORGANIZATION = "elementary"
logging.basicConfig(format='%(asctime)-15s %(message)s')
logger = logging.getLogger('github')
logger.setLevel(logging.INFO)
# initialization file (not found)