geekdoc-python-zh/docs/py4b/python-quick-start-web.md

100 lines
5.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# python快速入门网站
> 原文:<https://www.pythonforbeginners.com/python-on-the-web/python-quick-start-web>
## Python 快速入门网站
这篇文章是我们为网络写的关于 Python 的文章的集合。什么是面向 Web 的 Python基本上 [python 程序接口/抓取网站](https://www.pythonforbeginners.com/beautifulsoup/scraping-websites-with-beautifulsoup)和/或利用基于网络的 API。
如果您**喜欢**您阅读的内容,请使用上面的**按钮**
花一点时间**分享它**。
#### [如何在 Python 中使用 Reddit API](https://www.pythonforbeginners.com/api/how-to-use-reddit-api-in-python "how_to_use_reddit_api")
在 API 文档中,您可以看到有大量的事情要做。
#### [如何在 Python 中访问各种 Web 服务](/python-on-the-web/how-to-access-various-web-services-in-python/ "how_to_access_web_services")
学习 Python 的一个非常好的方法是尝试使用各种网络服务
API。为了回答这个问题我们首先要了解一些关于 API、
JSON、数据结构等等的知识。
#### [用 BeautifulSoup 进行网页抓取](https://www.pythonforbeginners.com/python-on-the-web/web-scraping-with-beautifulsoup "web_scraping_beautifulsoup")
"网络抓取(网络采集或网络数据提取)是一种从网站提取信息的计算机软件技术."
在 Python 中 HTML 解析很容易,尤其是在 BeautifulSoup 库的帮助下。在这篇文章中,我们将抓取一个网站(我们自己的)来提取所有的 URL。
#### [使用 Python 进行推文搜索](https://www.pythonforbeginners.com/code-snippets-source-code/tweet-search-with-python "tweet_search_python")
Twitter 的 API 是基于 REST 的,将返回 XML 或 JSON 格式的结果,以及 RSS 和 ATOM 提要格式的结果。任何客户端都可以访问公共时间轴,但所有其他 Twitter 方法都需要认证。
#### [使用 Python 的 CommandLineFu】](/code-snippets-source-code/commandlinefu-with-python/ "commande-line-fu-python")
当您想要使用基于 Web 的服务时,常见的第一步是查看它们是否有 API。
#### [如何在 Python 中使用 URL lib 2](/python-on-the-web/how-to-use-urllib2-in-python/ "urlib2_python")
urllib2 是一个 Python 模块,可用于获取 URL。
#### [使用 Python 中的请求](https://www.pythonforbeginners.com/requests/using-requests-in-python "use_reqeusts_python")
Requests 是一个 Apache2 许可的 HTTP 库,用 Python 编写。它被设计成供人类用来与语言互动。
#### [漂亮的汤 4 蟒蛇](https://www.pythonforbeginners.com/beautifulsoup/beautifulsoup-4-python "beautifulsoup4_python")
Beautiful Soup 是一个 Python 库,用于从 HTML 和 XML 文件中提取数据。
#### [在 Python 中使用 feed parser](https://www.pythonforbeginners.com/feedparser/using-feedparser-in-python "feedparser-python")
在本帖中,我们将看看如何使用 Python 下载和解析整合的
提要。
#### [用 Python 抓取网站](https://www.pythonforbeginners.com/python-on-the-web/web-scraping-with-beautifulsoup "scraping_websites_python")
"网络抓取(网络采集或网络数据提取)是一种从网站提取信息的计算机软件技术."
在 Python 中 HTML 解析很容易,尤其是在 BeautifulSoup 库的帮助下。在这篇文章中,我们将抓取一个网站(我们自己的)来提取所有的 URL。
#### [Python API 和 JSON](https://www.pythonforbeginners.com/json/python-api-and-json "python-api_json")
应用编程接口(API)是一种协议,旨在用作软件组件相互通信的接口。
#### [Python 机械化备忘单](/cheatsheet/python-mechanize-cheat-sheet/ "python_mechanize")
在 web 表单中导航的一个非常有用的 python 模块是 Mechanize。
#### [使用 Python 中的 YouTube API](https://www.pythonforbeginners.com/api/using-the-youtube-api "using_youtube_api_python")
在本帖中,我们将探讨如何在 Python 中使用 YouTube API。这个程序将展示我们如何使用 API 从 YouTube 中检索提要。
#### [如何在 Python 中使用 Vimeo API](https://www.pythonforbeginners.com/api/how-to-use-the-vimeo-api-in-python "vimeo_in_python_api")
Vimeo 提供了一个 API让我们可以整合他们的网站并在他们的数据上构建应用程序。
#### [使用机械化在 Python 中浏览](/python-on-the-web/browsing-in-python-with-mechanize/ "browsing_python_mechanize")
Python 中的 mechanize 模块为您提供了一个类似浏览器的对象来与 web 页面进行交互。
#### [从互联网上获取数据](/python-on-the-web/fetching-data-from-the-internet/ "fetching_data_internet")
urllib2 是一个用于获取 URL 的 Python 模块。
#### [awesome 请求模块](https://www.pythonforbeginners.com/requests/requests-in-python "requests_module")
Requests 模块是 Python 的一个优雅而简单的 HTTP 库。
#### [解析 Python 中的 JSON](https://www.pythonforbeginners.com/json/parsingjson "parsing_json_python")
对 HTTP API 的请求通常只是带有一些查询参数的 URL。
#### [解析 Python 中的 JSON 对象](https://www.pythonforbeginners.com/json/parse-json-objects-in-python "json_objects_python")
在这篇文章中,我们将解释如何用 Python 解析 JSON 对象。
当您想从各种 web 服务访问一个 API
并以 JSON 给出响应时,知道如何解析 JSON 对象是很有用的。
#### [什么是 JSON](https://www.pythonforbeginners.com/json/what-is-json "whatis_json")
JSON (JavaScript Object Notation)是一种紧凑的、基于文本的计算机数据交换格式。