Skip to main content

WPextract - WordPress Site Extractor

PyPI - Version Conda Version DOI

WPextract is a tool to create datasets from WordPress sites.

  • Archives posts, pages, tags, categories, media (including files), comments, and users
  • Uses the WordPress API to guarantee 100% accurate and complete content
  • Resolves internal links and media to IDs
  • Automatically parses multilingual sites to create parallel datasets

Quickstart

See the complete documentation for more detailed usage.

  1. Install with pipx
    $ pipx install wpextract
    
  2. Download site data
    $ wpextract download "https://example.org" out_dl
    
  3. Process into a dataset
    $ wpextract extract out_dl out_data
    

About WPextract

WPextract was built by Freddy Heppell of the GATE Project at the School of Computer Science, University of Sheffield, originally created to scrape mis/disinformation websites for research.

License

Available under the Apache 2.0 license. See LICENSE for more information.

Citing

[!NOTE] This software was developed for our EMNLP 2023 paper Analysing State-Backed Propaganda Websites: a New Dataset and Linguistic Study. The code has been updated since the paper was written; for archival purposes, the precise version used for the study is available on Zenodo.

We'd love to hear about your use of our tool, you can email us to let us know! Feel free to create issues and/or pull requests for new features or bugs.

If you use this tool in published work, please cite our EMNLP paper:

Freddy Heppell, Kalina Bontcheva, and Carolina Scarton. 2023. Analysing State-Backed Propaganda Websites: a New Dataset and Linguistic Study. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 5729–5741, Singapore. Association for Computational Linguistics.

Permanent references to each release of this software are available from Zenodo.

Metadata

Release files for wpextract 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for wpextract 1.1.1
File Size Uploaded
wpextract-1.1.1.tar.gz 39.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for wpextract 1.1.1
File Interpreter ABI Platform
wpextract-1.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 93.1 kB

Release files / wpextract-1.1.1.tar.gz

Download URL wpextract-1.1.1.tar.gz
Size 39.4 kB
Tags Source
SHA-256 checksum
How to use checksums
721a7a637a7b5876b73d616fd427444d9dc7a212daab056ed41bfe699560508c
BLAKE2b-256 checksum
How to use checksums
0aa6faf893ea9db7d4f076965565420f3640f0daaedc964b10819baabcb09b16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Jan 20, 2025.

Transparency log

Release files / wpextract-1.1.1-py3-none-any.whl

Download URL wpextract-1.1.1-py3-none-any.whl
Size 53.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7f626d57cf190c5cc40fe4079b6147e54272493efabcc29fb457e011e612fa6
BLAKE2b-256 checksum
How to use checksums
883c30e16c00b6fd0ce2578034d84a1c7ed878c629ad4a936e16105791671a67
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.0.1 CPython/3.12.8

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 Jan 20, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files

1.1.0

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page