Trustpilot scraping Python package. Extract online business reviews and integrate it on your code. It is based on BeautifulSoup.
Features
- Extract the information of a company from a Trustpilot page.
- Obtain its reviews with a fine-grained detail.
- The output data is structured in a simple dictionary.
- Support for Trustpilot pages with different HTML structure.
IMPORTANT: fakepilot now doesn't fetch the web pages from Trustpilot. This must be done by the user of the package.
Usage
The main function is extract_info. You can pass a file containing a Trustpilot HTML page of a company and it returns information, like number
of reviews, phone number or address. Also, you can specify if you want
some of the company's reviews to be extracted.
import fakepilot as fp
# Company information only
with open("company_page.html", encoding="utf-8") as page:
company = fp.extract_info(page)
# Company information plus its first 2 reviews
with open("company_page.html", encoding="utf-8") as page:
company = fp.extract_info(page, with_reviews=True, nreviews=2)
print(company["name"], company["score"], company["nreviews"])
print(company["reviews"][0]["title"])
extract_info expects an open file (or a string with the HTML content),
not a path. company_page.html is a company's Trustpilot page that you
have saved yourself, e.g. https://www.trustpilot.com/review/<company-domain>
saved from your browser.
Installation
fakepilot is available on PyPI. You can install it with
python -m pip install fakepilot
To install fakepilot from the GitHub source, clone the repository with git:
git clone https://github.com/phoenixsite/fakepilot.git
Then, change your current directory to the one you cloned and install it with pip:
cd fakepilot
python -m pip install .
Documentation
For a detail description of all the options you can visit the fakepilot's
documentation
or you can build yourself
in docs with Sphinx:
cd docs
python -m pip install -r requirements.txt
make html
Disclaimer
fakepilot is an independent project and is not affiliated with, endorsed by or sponsored by Trustpilot. "Trustpilot" is a trademark of its respective owner.
fakepilot only parses HTML pages that you have already obtained; it does not download anything from Trustpilot. You are solely responsible for how you obtain those pages and for how you use the extracted data, including complying with Trustpilot's Terms of Use and any applicable law (for example, data protection regulations such as the GDPR when handling reviewers' information).
This software is provided "as is", without warranty of any kind, as stated in the LICENSE.
Metadata
Release files for fakepilot 2026.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fakepilot-2026.11.0.tar.gz | 2.1 MB | With provenance | Details for fakepilot-2026.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fakepilot-2026.11.0-py3-none-any.whl | Python 3 | none | any | Details for fakepilot-2026.11.0-py3-none-any.whl |
Total release size: 2.1 MB
Release files / fakepilot-2026.11.0.tar.gz
| Download URL | fakepilot-2026.11.0.tar.gz |
|---|---|
| Size | 2.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
12d6bb72f4104159ca1040da1827bac7fef09a504de5893a6ea698b563a1bb0d
|
|
BLAKE2b-256 checksum How to use checksums |
72731992e6d5ed88e52a519cfbd3f38b0f8533540cea8bdfcb84a30f4caac719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / fakepilot-2026.11.0-py3-none-any.whl
| Download URL | fakepilot-2026.11.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95b9d4538c5522ceae7102a84ba55ff2ea67f96800a8fc8bb6a2f0cb7dae18bf
|
|
BLAKE2b-256 checksum How to use checksums |
99aabf63fbf448e207d0ea61bdb359ad77ae01bca2a6cc51ef6fc885d210acf9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for fakepilot 2026.11.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for fakepilot-2026.11.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.