猫史档案馆


【Python作品分享】爬虫数据库

用户:炭烤小章鱼炭烤小章鱼查看:1 回复:2 评论:1 创建时间:2020-08-18T13:47:28


【作品展示】

center_image

 

【作品介绍】

网络数据库读取函数等

 

【作品源代码】

import requests


def appinventor_post_get(user, secret, tag):

    return requests.post('http://tinywebdb.appinventor.space/api',
    data={'user': user, 'secret': secret, 'action': 'get', 'tag': tag}).json()

def appinventor_post_update(user, secret, tag, value):

    return requests.post('http://tinywebdb.appinventor.space/api',
    data={'user': user, 'secret': secret, 'action': 'update', 'tag': tag, 'value': value})

def appinventor_post_search(user, secret, no, count):

    return requests.post('http://tinywebdb.appinventor.space/api',
    data={'user': user, 'secret': secret, 'action': 'search', 'no': no, 'count': count}).json()

def appinventor_post_count(user, secret):

    return requests.post('http://tinywebdb.appinventor.space/api',
    data={'user': user, 'secret': secret, 'action': 'count'}).json()






dictionary_post_appinventor = ['python1', '78c6fb4c']

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
炭烤小章鱼炭烤小章鱼

喵喵喵是个网址,被屏蔽了 http://tinywebdb.appinventor.space/api

点赞0


评论


炭烤小章鱼炭烤小章鱼

额,又没了

h t t p : / / t i n y w e b d b . a p p i n v e n t o r . s p a c e / a p i

 

点赞0


评论