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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for moteurmapy-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49bc61d89d3101d86061044a668bbe510e633ba90b4566ae13e434ff4147f863 |
|
MD5 | 34a2de1f479a6780c3ac7218f90ece97 |
|
BLAKE2b-256 | 5aac3c06dcd224098a949cf945e273f95404fb792010a9f4db45641d9f57133c |