This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.seba.sqltutorial.Handlers; | |
import android.content.ContentValues; | |
import android.content.Context; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.database.sqlite.SQLiteOpenHelper; | |
import com.seba.sqltutorial.Models.Shop; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests, json | |
CATALOG_URL = 'http://a.4cdn.org/gif/catalog.json' | |
THREAD_URL = 'http://a.4cdn.org/gif/thread/' | |
CDN_URL = 'http://i.4cdn.org/gif/' | |
CRITERIA = 'YGYL' | |
files_saved = 0 | |
def parse_thread(number): | |
global files_saved |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install virtualenv | |
sudo pip install virtualenv | |
# Create the virtual envorinment | |
virtualenv --no-site-package app (# to use python3.5: `-p python3.5`) | |
# Install tornado in the virtual environment | |
app/bin/pip tornado | |
# After that, the following command should show something like tornado-VERSION-.egg |
NewerOlder