http://www.crummy.com/software/BeautifulSoup/bs4
https://docs.python.org/3.6/library/re.html
https://github.com/grangier/python/goose
from goose import Goose
url='http://www.elmundo.es/elmundo/2012/10/20/espana/1351388909.html'
g=Goose({'use_meta_language':False,'target_language':'es'})
article=g.extract(url=url)
atricle.cleaned_text[:150]
https://www.djangoproject.com
https://trypyramid.com/
#10行左右的Hello Word程序
from wsgiref.simple_server import make_server
from pyramid.config import Configurator
from pyramid.response import Response
def hello_world(request):
return Response('Hello World')
if _name_ == '_main_':
with Configurator() as config:
config.add_route('hello','/')
config.add_view(hello_world,route_name='hello')
app=config.make_wsgi_app()
server=make_server('0.0.0.0',6543,app)
server.serve_forever()
http://flask.pocoo.org
from flask import Flask
app=Flask(_name_)
@app.route('/')
def hello_world():
return 'Hello,World!'
https://github.com/offu/WeRoBot
import werobot
robot = werobot.WeRoBot(token='tokenhere')
@robot.handler
def hello(message): #对微信每个消息反馈一个Hello World
return 'Hello World!'
https://github.com/Baidu-AIP/python-sdk
https://github.com/syInsfar/qrcode