Skip to content

ligarcia7/ZonaProp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rationale

This program is designed to extract real estate ads from a few Argentinian real estate web pages and send them to a Telegram chat using a Telegram bot.

Dependencies

To run the program, you'll need to install some Python packages. The required packages and their versions are listed in the requirements.txt file. To install the packages, you can use the following command in your terminal or command prompt:

pip install -r requirements.txt

This command will read the requirements.txt file and install the packages and their dependencies.

It's recommended that you create a new virtual environment before installing the packages, to avoid conflicts with other Python projects or packages installed on your system. You can use a tool like virtualenv or conda to create a new environment.

Publicating to Telegram

Once you've installed the required packages, you'll need to create a Telegram bot and a chat room to receive the ads. Instructions on how to create a bot and a chat room can be found in the Telegram documentation here.

After you've created the bot and the chat room, you'll need to obtain the bot HTTP token and the chat ID and save them in a JSON file called telegram_bot_keys.json. The JSON file should have the following format:

{
    "bot_http_token": "your_bot_http_token_here",
    "chat_id": "your_chat_id_here"
}

Replace your_bot_http_token_here and your_chat_id_here with the actual bot HTTP token and room ID you obtained from Telegram.

Once you've set up the bot and the chat room, you can run the program. The program will extract ads from the specified websites and send them to the Telegram chat. The program will keep running until it reaches set up page number.

If you encounter any issues or have any questions, feel free to contact the developer.

Running the tests

pytest <your path to /tests/ directory>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages