Git Product home page Git Product logo

bahmanspider's Introduction

BahmanSpider

Some useful APIs which made it easier to buy cars from BahmanMotor (Iranecar).

Direct Link

This script can find direct access link to the form using circulation data. I suggest setting a corn-job to run this script at VERY FIRST MOMENT of registration process and use its result to have a faster registration.

Note: Setting of this script can be find in config.php

Configuration

  • botToken Telegram Bot API token
  • channel Telegram Chat ID to get links and messages
  • carId Car ID to get links for (use below table)
# Name
55 B30
93 Kara Dual Cabin
94 Kara Single Cabin
96 Dignity
100 Fidelity
104 Capra 4DW
106 EmPower
You can also use the ID Finder script to expand your list.
  • typeId Some cars have different types or trims (like Dignity/Fidelity), and you should select it using this variable (Use below table)
Car Types Code
Dignity Trim: Red, Black SOON
Fidelity Seats: 5, 7 127, 128
  • optionCode Customers can select multiple options for some cars (like Fidelity's wheel rings)
Car Description Code
Fidelity Rings: 20-11 (Sport one), 20-12 (5 Par) 3400, 3500

ID Finder

We use this script to understand car ids and find new cars before their official registration.

Set a cron-job for every 6-hour to check data.

Forms

Simulated form of each registration is available at test-forms/ directory.

  • new.php Tested at 1400/12/17 and works properly.
  • old.php Old Iranecar version. This file is invalid after 1400/10

Queue Monitor

Are you stuck in the validation process? Just give your queueId and orderId to this script. It will keep sending request to the CheckResult endpoint until get payment link. (This script never stops working. needs manually terminate using Ctrl+C)

Home Checker

This script checks Bahman's home items and notifies you when home something is available to buy.

Example Usages:

  • Finding test circulations
  • Get notified when circulation published at sell days (example: sometimes they publish circulations at 10:03 instead of 10:00; and we can't refresh the website every 30 seconds)

bahmanspider's People

Contributors

sh-sh-dev avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.