Skip to main content

An unofficial API for scrapping Moteur.ma

Project description

moteur-ma-api

This is an unofficial Python API for Moteur.ma

install

pip install moteurmapy

Quick Start

Example 1: collect search results

from moteurmapy import MoteurList

moteur_list = MoteurList()

url = "https://www.moteur.ma/fr/voiture/achat-voiture-occasion/recherche/?ville=rabat&per_page=30"

list_of_cars = moteur_list.run( url )

df_list = pd.DataFrame( list_of_cars )

Example 2: collect details about a car

from moteurmapy import MoteurDetails

moteur_details = MoteurDetails()

url = "https://www.moteur.ma/fr/voiture/achat-voiture-occasion/detail-annonce/387055/renault-scenic-.html"

details_of_one_car = moteur_details.run( url )

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

moteurmapy-1.0.2.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

moteurmapy-1.0.2-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page