# Compare Python web frameworks by weekly downloads

**Use case:** 

Pulls PyPI data for FastAPI, Flask, Django, Starlette and Litestar: weekly, monthly and last day downloads (mirrors excluded), latest version and release date, days since the last release, recent release history and PyPI links. A quick, current way to compare library adoption. Swap in any npm or PyPI packages.

## Input

```json
{
  "packages": [
    "pypi:fastapi",
    "pypi:flask",
    "pypi:django",
    "pypi:starlette",
    "pypi:litestar"
  ],
  "ecosystem": "both",
  "searchKeywords": [],
  "maxSearchResults": 10,
  "includeDownloads": true,
  "minWeeklyDownloads": 0,
  "releaseHistoryLimit": 5,
  "includeDependencyList": false,
  "includeMaintainerEmails": false,
  "maxItems": 0,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

## Output

```json
{
  "ecosystem": {
    "label": "Registry",
    "format": "text"
  },
  "name": {
    "label": "Package",
    "format": "text"
  },
  "version": {
    "label": "Version",
    "format": "text"
  },
  "description": {
    "label": "Description",
    "format": "text"
  },
  "license": {
    "label": "License",
    "format": "text"
  },
  "weeklyDownloads": {
    "label": "Weekly downloads",
    "format": "number"
  },
  "monthlyDownloads": {
    "label": "Monthly downloads",
    "format": "number"
  },
  "latestReleaseDate": {
    "label": "Latest release",
    "format": "date"
  },
  "releaseCount": {
    "label": "Releases",
    "format": "number"
  },
  "dependenciesCount": {
    "label": "Dependencies",
    "format": "number"
  },
  "maintainers": {
    "label": "Maintainers",
    "format": "array"
  },
  "repositoryUrl": {
    "label": "Repository",
    "format": "link"
  },
  "homepage": {
    "label": "Homepage",
    "format": "link"
  },
  "keywords": {
    "label": "Keywords",
    "format": "array"
  },
  "packageUrl": {
    "label": "Package page",
    "format": "link"
  },
  "searchKeyword": {
    "label": "Search keyword",
    "format": "text"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The npm and PyPI Package Scraper: Downloads, Versions, Licenses Actor is ready to run with the inputs already set for "Compare Python web frameworks by weekly downloads". [Sign up or log in](https://console.apify.com/create-task-from-example/27OjkacmsNzTyBt0N) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Compare Python web frameworks by weekly downloads" task

The npm and PyPI Package Scraper: Downloads, Versions, Licenses Actor will start running based on the input automatically. You can also change all the input fields, like package names, ecosystem, and more, to match your specific use case.

### 3. Receive the "Compare Python web frameworks by weekly downloads" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as registry, package, version, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Compare Python web frameworks by weekly downloads" task via API](https://apify.com/zhtech/npm-pypi-package-scraper.md).

## FAQ

### What does the Python web frameworks comparison task return?

The Python web frameworks comparison task saves one row per package: latest version and release date, days since the last release, weekly, monthly and last day downloads, recent release history, summary and PyPI links.

### How do I compare other libraries?

In the Python web frameworks comparison task, replace the five packages with any names, one per line, using pypi: or npm: prefixes, for example npm:react and npm:vue. Search keywords finds packages by topic.

### Where do the download numbers come from?

The Python web frameworks comparison task reads PyPI downloads from pypistats.org with mirrors excluded, and npm downloads from the official api.npmjs.org, so numbers match those public sources.

### Can I track adoption over time?

The Python web frameworks comparison task can run weekly on an Apify schedule, saving a fresh download snapshot each time that you can chart in Google Sheets or a database.

### How much does the Python web frameworks comparison task cost?

The Python web frameworks comparison task uses pay per event pricing: a small start fee plus a fixed price per package saved, with no charge for compute time. Small runs like this fit the Apify free plan credit.

## About this Actor

This example demonstrates how to use [npm and PyPI Package Scraper: Downloads, Versions, Licenses](https://apify.com/zhtech/npm-pypi-package-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/zhtech/npm-pypi-package-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/zhtech/npm-pypi-package-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
