This project aims to reverse-engineer the ChatBabu website by scraping its data and interacting with its API using Python. The notebook demonstrates how to send requests to ChatBabu's endpoints and process the returned data.
- Challenge: Interacting with the ChatBabu API using appropriate headers and payloads.
- Solution: Configured detailed headers and payloads to mimic legitimate requests, ensuring successful API interactions.
- Challenge: Processing multipart form-data for POST requests.
- Solution: Utilized Python's
BytesIO
to encode payloads correctly and handle multipart form-data efficiently.
- Problem: Ensuring the payload and headers are formatted correctly for API requests.
- Solution: Carefully constructed the headers and payloads to match the API's requirements.
- Problem: Extracting useful information from the complex JSON responses.
- Solution: Implemented robust parsing functions to extract and display relevant data from the API responses.
- Python 3.x
requests
library (pip install requests
)
-
Clone the repository:
git clone https://github.com/faisal-fida/ChatBabu-ReverseEngineered.git cd ChatBabu-ReverseEngineered
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the Jupyter notebook:
jupyter notebook chatbabu_reverse_engineered.ipynb
- The notebook includes code to interact with the ChatBabu API, send queries, and process the results.
- Modify the query variable to test different inputs and observe the responses.
We welcome contributions from the community. Please feel free to submit issues or pull requests.
This project is licensed under the MIT License. See the LICENSE file for details.