С помощью этой библиотеки, вы сможете парсить информацию с сайта
Project description
О библиотеке
Пока что эта библиотека в разработке, вот что умеет эта библиотека:
С помощью - import find_url вы импортируете библиотеку.
Чтоб начать находить информацию, пишите find_url.url.find(url, f, f2).
Сдесь url это ссылка которую надо парсить, f это на что начинается то, что вы хотите получить. f2 - На что заканчивается то, что вы хотите получить.
Так же если вы получили готовый html код, используйте find_url.url.html(html, f, f2).
Например, я хочу получить с сайта https://pypi.org/project/find-url/ название, то есть в html коде - <title>find-url · PyPI</title>.
В этом случие То что мы хотим получить начинается на <title>, и заканчивается на </title>.
То есть - find_url.url.find('https://pypi.org/project/find-url/', '<title>', '</title>').
Всё это выдаст "find-url · PyPI"
Пример кода
import find_url find_url.url.find('https://pypi.org/project/find-url/', '<title>', '</title>') # find-url · PyPI import requests html_text = requests.get(https://pypi.org/project/find-url/).text find_url.url.html(html_text, '<title>', '</title>') # find-url · PyPI
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file find_url-1.0.7.tar.gz.
File metadata
- Download URL: find_url-1.0.7.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.7.8 Windows/7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97e509998fbb1d3e1d24429a68a79d1a3375e9b8bbf34b5e8152a398cce7f12f
|
|
| MD5 |
b3c90e53085c03de4acd6d2f056bfd9b
|
|
| BLAKE2b-256 |
a1349cfdb82343c074a84494850a71828c679f84af74d4e94c43f0d0a455ed41
|
File details
Details for the file find_url-1.0.7-py3-none-any.whl.
File metadata
- Download URL: find_url-1.0.7-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.5 CPython/3.7.8 Windows/7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbf8a74adb02730cb40b1367b006ad433215e363aa165633e3c71e14fc9d5441
|
|
| MD5 |
fe180fcd00e2e762f9ab21f664a51abc
|
|
| BLAKE2b-256 |
fa242bedcabb6ccfcd1de5da23befbe36c838a78f123129d610e7927c1e30cc4
|