Skip to content

Instantly share code, notes, and snippets.

View krysits's full-sized avatar
💥

Kristaps Ledins krysits

💥
View GitHub Profile
<?php
/*
Loto Helper
coded by @krysits
05.05.2014
*/
class Loto extends CI_Controller {
public function index(){
$this->no35();
//$this->bingo();
@krysits
krysits / it-ebooks.net.py
Created September 2, 2015 19:44
Python Script that scrapes it-ebooks.net for search query and saves Book ID in text file.
#!/usr/bin/env python3
import urllib.request
import json
queryString = 'javascript'
ur = 'http://it-ebooks-api.info/v1/'
def getFile(urla):
response = urllib.request.urlopen(urla)
data = json.loads(response.readall().decode('utf-8'))
@krysits
krysits / down.py
Created October 8, 2015 18:33
Dumps all ebooks data on subject query
import urllib.request
import json
from pymongo import MongoClient
queryString = 'python'
ur = 'http://it-ebooks-api.info/v1/'
buks = []
def gf(tech):