

GitHub - EricEdens/urllib: A modern URL toolset for Java. Compliant with RFC 398...
source link: https://github.com/EricEdens/urllib
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

urllib
Urllib is a library that makes URL manipulation easy, fun, and safe!
- Zero extra dependencies.
- Supports Java 7+, Android 14+.
- Compliant with RFC 3986.
- Immutable and threadsafe.
System.out.println(
Url.http("maps.google.com")
.path("maps")
.query("q", "Búðardalur")
.create());
>> http://maps.google.com/maps?q=B%C3%BA%C3%B0ardalur
System.out.println(
Url.parse("https://www.wolframalpha.com/input/?i=%E2%88%9A-1")
.query()
.params());
>> {i=√-1}
We're in preview!
Feel free to check out the code and give feedback! The first stable release will be 1.0. In the meantime, builds are available on jitpack:
Gradle
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'org.urllib:urllib:master-SNAPSHOT'
}
Maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.urllib</groupId>
<artifactId>urllib</artifactId>
<version>master-SNAPSHOT</version>
</dependency>
</dependencies>
- 0.1
- Create a
Url
from scratch with builders. - Interop with
java.net.URI
- Support ASCII DNS hosts.
- Create a
- 0.2
- Expose component fields (scheme, host, path, etc..) via methods on the
Url
object.
- Expose component fields (scheme, host, path, etc..) via methods on the
- 0.3
- Support IPv4 hosts.
- 0.4
- Support IPv6 hosts.
- 0.5
- Support IDN hosts.
- 0.6
- Create a
Url
by parsing.
- Create a
- 0.7
- Utility method to create a
java.net.URI
from a previously-encodedURL
.
- Utility method to create a
- 0.8
- Resolve a possibly-relative link against an existing
Url
- Resolve a possibly-relative link against an existing
- 0.9
- Utility method to classify a potential URL. Is it junk? A protocol-relative URL? An absolute path?
- 1.0
- Encode a
Url
to display to users (like in a web browser URL bar)
- Encode a
License
Recommend
-
78
在python的网络模块中,使用频率最高的莫过于urllib了,因为里面包含了打开网址发送请求的方法;但是python中urllib的功能,随着互联网的发展,也在迭代进步,所以有了urllib,urllib2和urllib3,他们之间有啥区别呢,下面一一阐述:1.)python中最早内置拥有的网...
-
52
实验对象:麦子学院 一、网站分析: 1、大部分视频信息都存在http://www.maiziedu.com/course/all/中,所有的视频信息都有自己的ID,第一次查询地址应该是在:'http://www.maiziedu.com/course/' + id中, 分析页面获取title ,为创建文件夹获取目录 url_d...
-
26
Python urllib HTTP头注入漏洞 virusdefender
-
16
人生苦短,我用 Python 前文传送门: 小白学 Python 爬虫...
-
40
本模块定义了一个标准接口,既可以把 统一资源定位符 (URL)解析为若干部分(通信协议,网络地址和路径等),也可以把各个部分重新组合成URL,还可...
-
11
urllib 是 python 的内置模块, 主要用于处理url相关的一些操作,例如访问url、解析url等操作。 urllib 包下面的 request 模块主要用于...
-
14
urllib是Python中请求url连接的官方标准库,在Python3中将Python2中的urllib和urllib2整合成了urllib。urllib中一共有四个模块,分别如下: request:主要负责构造和发起网络请求,定义了适用于在各种复杂情况下打开...
-
14
【Python爬虫实战】用urllib与服务端交互(发送和接收数据) ...
-
8
Python爬虫编程思想(8):使用urllib库发送HTTP请求和接收响应
-
8
py-build-cmake Modern, PEP 517 compliant build backend for building Python packages with extensions built using CMake. Features Build and packag...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK