Automatically send POST requests triggered by website scraping info to an HTTP interface -- 2

Job ID: 37194296

Budget: €30 – €250 EUR

Automatically send POST requests triggered by website scraping info to an HTTP interface

Budget 20 EUR

I am looking for someone to create a system that automatically sends POST requests triggered by website scraping info, to an HTTP interface. Developer needs to create both tools, the script to send Post Requests and the website scraper.

I don't have a preferred language in mind for the program. Short, I need a tool that scrapes a website (with login) for updated information, gets the important info and modifies it/add info in need according to my needs and sends it to an HTTP interface in the form of a POST request.

Details:

The ultimate aim of the project is to send betting picks from the scraped website to the Smartbet.IO website. Smartbet.io offers the following http GET/POST endpoints to facilitate communication with the pick processing and distribution system:
postpick.php - Submit a new pick to Smartbet.io

You can read more about it on their website here:
https://smartbet.io/forums/topic/38/how-can-i-submit-my-picks-to-smartbet-io-using-the-http-post-and

The website where I want info to be scraped and extracted is Trade Mate. The info is presented in text, I think HTML and in this format:

- Name of Home Team vs Name of Away Team
- Market and Bet @ Odds
- Time to Start – Submarket

Example:
- Sarmiento vs Velez Sarsfield
- Asian hcp +2.5 (Sarmiento) @ 1.68
- 12 minutes to Start – 1st Half (Ordinary Time)

Now 1 by 1:
- Name of Home Team and Name of Away Team:
This is straightforward, it’s just the names of the teams against each other. Trade Mate always present them like this.

- Market and Bet @ Odds:
Can be various options between three different markets:
. Moneyline
 1x2 (Name of Team) @ Odds
. Asian Handicap
 Asian hcp +0 (Name of Team) @ Odds
 Asian hcp +0.25 (Name of Team) @ Odds
 Asian hcp +0.5 (Name of Team) @ Odds
 Asian hcp +0.75 (Name of Team) @ Odds
 …
 (Always in increments of 0.25)
 (But it can also be negative) like the examples below:
 Asian hcp -0.25 (Name of Team) @ Odds
 Asian hcp -1.25 (Name of Team) @ Odds
 …
. Totals (o nly presented as Under or Over)
 Under 1 @ Odds
 Under 0.75 @ Odds
 Under 0.5 @ Odds
 Over 2 @ Odds
 Over 3.5 @ Odds
 (Digits change in increments of 0.25)

- Time to Start – Submarket
. Time to Start – We don’t need to use this information.
. Submarket:
. Can be presented in two ways:
 1st Half (Ordinary Time) – meaning that the bet is related to the first period of the game
 Ordinary Time – meaning that the bet is related to all the game (both periods)

Note: The Odds are decimal and increment in 0.01, from 1 to 1000.

Now that we have checked the way in which Trade Mate presents the information about each bet lets see how Smartbet.IO wants to receive the information: Syntax and Examples for Smartbet.IO can be confirmed here: https://smartbet.io/pagemarketsupport/marketsupport

To view my selected preferences choose the following filters:
. Sport – Football
. Market Type – Moneyline / Asian Handicap / Totals
. Status - Pregame
Program Specifications:

1. I would like to have a program/tool/script that runs 24 hours a day on my home pc or VPS and is triggered when a new bet info is scraped from Trade Mate. Reads, Modifies, add info and send it as a POST request to POST smartbet.io/postpick.php in the format they need to process it, which is:

POST smartbet.io/postpick.php
{
"key": "bcbab-1a8dy2q5-d138-4af3-bzb5-58m2v54b1c6z",
"sport": "Football",
"event": "SARMIENTO - VELEZ SARSFIELD",
"bet": "[HT] SARMIENTO +2.5",
"odds": "1.68",
"stake": "10",
"book": "BET365",
"source": "xxx"
}

Parameters:

key: The API key used for authentication. This must be any active Bot ID that belongs to the owner of the source that the pick is being submitted to.
sport: The sport associated with the pick.
event: The event related to the pick.
bet: The pick's bet string.
odds: The pick's odds in decimal format.
stake: The stake for the pick in Smartbet.io's 1-10 units scale.
book: The bookmaker (e.g., "PINNACLE", "BET365").
source: The Smartbet.io source that the pick is submitted to.

Notes:
- On line 3 ("sport": "Football",) I always want "Football" to appear there because i'm not getting this info from the website. This must be a fixed expression, meaning that I always want it to be “Football” in every POST Request the tool performs.
- On line 4 ("event": "SARMIENTO - VELEZ SARSFIELD",) I need the V to be changed for an Hifen (in between the names of the teams) and also all the text must be changed to Caps Lock.
- On line 5 ("bet": "[HT] SARMIENTO +2.5",) has you can see i'm extracting only part of the information from Trade Mate and in some cases I might modify it:
. (“1st Half” was changed to “[HT]”
. from “Asian hcp +2.5 (Sarmiento) we only used the name of the Team and change it to Caps Lock and also +2.5 – so it becomes this [HT] SARMIENTO +2.5
- Lines 8, 9 and 10 are added because this is also info that is not present in the scraped information. But this is always going to be a fixed term so it’s easy.

2. I can download and install Python or whatever programming language files are needed if required.

3. If possible, I would like to be able to see the code of how it is done if possible. For example, if it is done with Python, I would like to see what’s the professional way to do it.

4. Make it that it can run on Windows 10 and above.

If you need more information first, please let me know.

Key Notes:
- I only pay the budget if the tools are tested at least for 1 week without giving any error;
- We must test if the Name of the Teams work perfectly with Smartbet.IO requests. If it does not we might need to add some changes.
- I need this tool to be scraping and sending the Post Requests really fast. Scraping in Trade Mate must be happening almost by the second and the overall time from initiating scraping and sending the Post Requests should be really low. 5 Seconds would be perfect.

I’m going to need a few more scripts like this so whoever I choose to perform the project please be advised that if it goes as per request you will have more work to do (and more money to receive).

Project should start Monday the 4th of September.

Questions:
- And how much time do you think it would take to delivery?
- How many seconds can you perform in starting scraping the info and sending the Post Request? Please detail your answer. If it’s more than 15 seconds please share this input with me. It should be between 1 and 10 seconds.
Related categories: Python Web Scraping HTML