Craigslist Scraper
Craigslist Scraper is a scraping tool that overcomes advanced anti-bot systems and helps you gather public data from Craigslist on any scale you need. This guide will show you how to scrape Craigslist using Oxylabs’ Scraper API.
How it works
You can get Craigslist data by sending a request to our API with the URLs you want to access and scrape. The API will return the HTML of any public Craigslist page.
Python code example
The below code sample sends a request to our service, which uses a headless browser to execute JavaScript and sends back the HTML of a Craigslist page:
import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'universal',
'url': 'https://berlin.craigslist.org/search/ela#search=1~gallery~0~0',
'geo_location': 'Germany',
'render': 'html'
}
# Get a response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'), #Your credentials go here
json=payload
)
# Instead of response with job status and results URL, this will return the
# JSON response with results.
pprint(response.json())
Visit the documentation to find more payload parameters and other details.
Output sample
{
"results": [
{
"content": "<!doctype html>
<html lang="en">
<head>
...
</script></body>
</html>
",
"created_at": "2023-09-21 14:26:52",
"updated_at": "2023-09-21 14:27:10",
"page": 1,
"url": "https://berlin.craigslist.org/search/ela#search=1~gallery~0~0",
"job_id": "7110630468831163393",
"status_code": 200
}
]
}
Oxylabs Craigslist Scraper API will ease your scraping processes significantly. Use it to gather public data, such as jobs, items, services, and ads. If you have any questions, feel free to get in touch with us via live chat or email.
Metadata
Release files for craiglist-scraper-api 1.0.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 |
|---|---|---|---|---|
| craiglist-scraper-api-1.0.0.tar.gz | 2.5 kB | Without provenance | Details for craiglist-scraper-api-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| craiglist_scraper_api-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for craiglist_scraper_api-1.0.0-py3-none-any.whl |
Total release size: 5.0 kB
Release files / craiglist-scraper-api-1.0.0.tar.gz
| Download URL | craiglist-scraper-api-1.0.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c41403d77b6a81029e151d23e27e5686800becce8b681dbfa33b388041f4c9ab
|
|
BLAKE2b-256 checksum How to use checksums |
0ce04fbffbe017c6810fe9d844784229065f300675b805da00d41ff70bd9c45a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / craiglist_scraper_api-1.0.0-py3-none-any.whl
| Download URL | craiglist_scraper_api-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
53f5767338b1ace27595109085bd0ff96de9037017e102cc0d478b2f893afb13
|
|
BLAKE2b-256 checksum How to use checksums |
a479b0059f9a299cc59b6b0896eb2232cd1508d2d9004839e536e761327c6cee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for craiglist-scraper-api 1.0.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.