Skip to content

TheClassifier/BinLib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BinLib

Python Class for querying doxbin

Usage:

from BinLib import DoxBin
from random import choice

doxbin = DoxBin() # initialize doxbin class

session = doxbin.init_session() # initialize session to request dox content
if session is None: 
    print("Session initialized from session.json")
else:
    print("Session initialized from scratch")

query = input("Enter query: ")
while not query:
    query = input("Enter query: ")

dox_list = doxbin.search(query) # search for dox
print(dox_list)


dox_obj = choice(dox_list) # pick random dox from dox list
print(dox_obj)

dox_content = doxbin.get_dox_content(dox_obj['href']) # get dox content from dox url
print(dox_content)

About

Python Class for querying doxbin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages