Skip to content

Instantly share code, notes, and snippets.

Kirill cyrexcyborg

Block or report user

Report or block cyrexcyborg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:b3c5d06b96a2a3ead99a
from bs4 import BeautifulSoup as bs
from urllib2 import urlopen
from time import sleep
soup = bs(html,"lxml")
gen_urls = [x for x in range(80000, 80002)]
base_url = 'http://joyreactor.cc/new/'
enlist_urls =[base_url+str(item) for item in gen_urls]
@cyrexcyborg
cyrexcyborg / relations.py
Last active Aug 21, 2019
Flask-Admin-SQLAlchemy one-to-one, one-to-many between two tables
View relations.py
# -*- coding: utf-8 -*-
# Many thanks to http://stackoverflow.com/users/400617/davidism
# This code under "I don't care" license
# Take it, use it, learn from it, make it better.
# Start this from cmd or shell or whatever
# Go to favourite browser and type localhost:5000/admin
import sys
from flask import Flask
from flask.ext.sqlalchemy import SQLAlchemy
from flask.ext.admin import Admin
You can’t perform that action at this time.