JAVA网络爬虫
HttpClient

导航

 

2019年5月7日

摘要: tcp多线程客户端 from socket import * from threading import Thread def s... 阅读全文
posted @ 2019-05-07 21:37 gmlgxx 阅读(71) 评论(0) 推荐(0)
 
摘要: tcp单进程非堵塞服务器 from socket import * def main(): tSocket = sock... 阅读全文
posted @ 2019-05-07 21:34 gmlgxx 阅读(54) 评论(0) 推荐(0)
 
摘要: tcp多线程服务器 from threading import Thread from socket import * def r... 阅读全文
posted @ 2019-05-07 21:32 gmlgxx 阅读(72) 评论(0) 推荐(0)
 
摘要: 多进程tcp服务器 from multiprocessing import Process from socket import *... 阅读全文
posted @ 2019-05-07 21:31 gmlgxx 阅读(62) 评论(0) 推荐(0)
 
摘要: 模型类 # 定义地区模型 class AreaInfo(models.Model): # 地区名字 title... 阅读全文
posted @ 2019-05-07 18:52 gmlgxx 阅读(64) 评论(0) 推荐(0)
 
摘要: 路由配置 url(r'^list/(?P\d+)/(?P\d+)$', ListView.as_view(), name='l... 阅读全文
posted @ 2019-05-07 18:46 gmlgxx 阅读(23) 评论(0) 推荐(0)
 
摘要: 在settings.py下配置上传路径 视图函数 # 接收图片 # 浏览器上地址栏输入的是一个具体的静态文件地址的时候 是... 阅读全文
posted @ 2019-05-07 18:43 gmlgxx 阅读(28) 评论(0) 推荐(0)
 
摘要: QueryDict对象: 定义在django.http.QueryDictHttpRequest对象的属性GET、POST都是Que... 阅读全文
posted @ 2019-05-07 18:26 gmlgxx 阅读(73) 评论(0) 推荐(0)
 
摘要: 反向解析 模板中的反向解析 在test4/urls.py中为include定义namespace属性。 url(r'^',in... 阅读全文
posted @ 2019-05-07 18:10 gmlgxx 阅读(42) 评论(0) 推荐(0)
 
摘要: Django中间件 初始化:无需任何参数,服务器响应第一个请求的时候调用一次,用于确定是否启用当前中间件。 def __init__... 阅读全文
posted @ 2019-05-07 17:58 gmlgxx 阅读(48) 评论(0) 推荐(0)