Skip to main content

All kinds of things written by Suluoya.

Project description

Suluoya

This is a package written by Suluoya just for fun!

import

import Suluoya as sly

search_question

#search question by inputting for only once
sly.search_question()
#search question by inputting for many times
sly.search_question(again=True)
#search question by calling parameters and return answer
print(sly.search_question(question='Besides key points, the other element a summary should include is:'))
#search question by calling parameters and directly print answer 
sly.search_question(question='Besides key points, the other element a summary should include is:',show=True)

download_music

#download music to d:\ 
sly.download_music()
#download music to any path you want
sly.download_music(path='c:\\')

draw_a_heart

#draw a Suluoya heart
sly.draw_a_heart()
#draw any hearts you want
sly.draw_a_heart(name='any name you like')

xkcd

#You know what I mean!
sly.xkcd()

get_soup

#directly get soup from url
#not need to fill all
#url='https://pypi.org/project/Suluoya-pkg/' in default
#code='utf8' in default
#payloads means data in module 'requests' 
#'show=False' means show the soup instead of return it
get_soup(url='',code='',headers='',params={},payloads={},show=False)

get_json

#directly get json from url
#not need to fill all
#if url='',Suluoya will go on strike
#code='utf8' in default
#payloads means data in module 'requests'
#'show=False' means show the json instead of return it
get_soup(url='',code='',headers='',params={},payloads={},show=False)

QRcode

#make a QRcode
#fill in an url or some strings in content
#fill in the name of the QRcode in name
sly.QRcode(content='',name='')

contact

#If you wanna contact Suluoya...
sly.contact(mode='wechat')
sly.contact(mode='qq')

pay

#If you wanna make a donation...
sly.pay(mode='alipay')
sly.apy(mode='wechatpay')

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Suluoya-1.1.0.tar.gz (4.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page