semvec/pypi-packages huggingface dataset:
scrapist 1.0.0
A fast web scraper for Python
Requires Python: >=3.6

# Scrapist: The Next Level of Efficient Web Scraping
Scrapist is a web scraper designed for Python. This web scraper uses requests and BeautifulSoup and also provides support for Scrapy style CSS selectors. Its features are:
* Faster than requests and BeautifulSoup.
* Is effective in fetching multiple pages compared to Scrapy.
* Provides support for both BeautifulSoup-style selection and Scrapy-style CSS selection.

# Installation
To install Scrapist, run this command in the terminal:
```
    pip install scrapist
```

# Initialization
To start web scraping with Scrapist, use this code:
```python
    from scrapist import Scraper

    scraper = Scraper()
    data = scraper.scrape("<your url here>")
    print(data.soup)
```

# Getting Specified Parts/Tags of a web page
To get specified parts/tags of a web page, you can choose either of the two ways:

## The Scrapy-style
To get specified data Scrapy-style, use this code after the initialization:
```python
    first = data.css("<your css selector here>").get()
    print(first)
    # Or
    all_data = data.css("<your css selector here>").getall()
    print(all_data)
```

## The BeautifulSoup-style
To get specified data BeautifulSoup-style, use this code after the initialization:
```python
    first = data.find("<your tag here>", "[your attributes here]")
    print(first)
    # Or
    all_data = data.find_all("<your tag here>", "[your attributes here]")
    print(all_data)
```

# Creating a Soup Strainer
To create a soup strainer, use this code just after the line of creating a scraper (The `scraper = Scraper()` intialization line):
```python
    strainer = scraper.strainer("<your tag here>", "[your attribute here]")
```
And use the strainer in the `strainer` parameter in `scraper.scrape()` function.
mfhm 0.1.1
HTTP microservice package based on FastAPI and HTTPX
Requires Python: >=3.6.1

# MFHM - MangFu HTTP Microservices


<div align=center><img src="docs/docs/logo.png"></div>


## 简介

> 基于[HTTPX](https://github.com/encode/httpx)和[FastAPI](https://github.com/tiangolo/fastapi)的HTTP微服务框架，侧重于Web领域
>
> **注意：** 该项目只是本人用于研究微服务而创建的探索项目, 项目代码只注重功能的实现, 没有进行过严格的测试, 所以请将本项目用于个人/研究为目的/无关紧要的项目中, 切勿在生产项目中使用



## 文档：

在线文档: [https://mangfu26.github.io/mfhm/site/](https://mangfu26.github.io/mfhm/site/)