Search Results
|
Post |
Author |
Forum |
Replies |
Views |
Posted
[asc]
|
|
|
Thread: Flask web app on Azure help
Post: RE: Flask web app on Azure help
Yes this solution work, but it would be more correct place nginx in front of flask. |
|
kashcode |
Web Scraping & Web Development |
2 |
2,653 |
Aug-10-2021, 12:04 PM |
|
|
Thread: Making certain texts stop at a certain time
Post: RE: Making certain texts stop at a certain time
introduce counter for each message and if message reach limit then stop with this message. |
|
kashcode |
General Coding Help |
6 |
2,825 |
May-20-2021, 03:13 PM |
|
|
Thread: Python and MySql
Post: RE: Python and MySql
In case when you need insert symbols if not exists you can create table where symbols column is unique key end use insert ignore or INSERT ... ON DUPLICATE KEY UPDATE symbol=symbol |
|
kashcode |
General Coding Help |
8 |
3,371 |
May-20-2021, 02:43 PM |
|
|
Thread: Python and MySql
Post: RE: Python and MySql
You need insert symbol if does not exist or update when exists? |
|
kashcode |
General Coding Help |
8 |
3,371 |
May-20-2021, 06:23 AM |
|
|
Thread: Python and MySql
Post: RE: Python and MySql
can you show response from API? |
|
kashcode |
General Coding Help |
8 |
3,371 |
May-19-2021, 09:39 PM |
|
|
Thread: Website scrapping and download
Post: RE: Website scrapping and download
You can give a try for selenium, but there is alternative using python requests lib. |
|
kashcode |
Web Scraping & Web Development |
3 |
4,334 |
Apr-14-2021, 07:22 AM |
|
|
Thread: Making an API post
Post: RE: Making an API post
Run this command
python -m pip install requeststhis will install requests lib.
Make a POST request to a web page, and return the response text:
import requests
url = 'https://www.w3schools.com/pyth... |
|
kashcode |
News and Discussions |
2 |
1,778 |
Apr-08-2021, 08:25 AM |
|
|
Thread: Python and MYSQL Resultset
Post: RE: Python and MYSQL Resultset
Read this thread https://stackoverflow.com/questions/3920...ql/3920490 |
|
kashcode |
Web Scraping & Web Development |
2 |
2,356 |
Apr-01-2021, 12:12 PM |
|
|
Thread: passing token to requests
Post: RE: passing token to requests
Try send payload as json. In requests.post I replace data with json
payload = {'language': 'en', 'name': 'dude', 'password': 'mypw'}
r = requests.post("https://my/api/", headers={'Authorization':tok... |
|
kashcode |
Web Scraping & Web Development |
4 |
3,143 |
Mar-12-2021, 08:59 AM |
|
|
Thread: Unable to Extract a web element
Post: RE: Unable to Extract a web element
I suggest, take look at requests library https://requests.readthedocs.io/en/lates...uickstart/ and read about GET and POST. JSON is last thing. Selenium is overhead in this particular case.
What reque... |
|
kashcode |
Web Scraping & Web Development |
6 |
5,002 |
Mar-05-2021, 08:56 AM |
|
|
Thread: Unable to Extract a web element
Post: RE: Unable to Extract a web element
Hello,
Check if this is right for you:
import json
import requests
def odibets():
response = requests.post(f'https://odibets.com/api/fv', json={
"competition_id": 1, # 1 - English Le... |
|
kashcode |
Web Scraping & Web Development |
6 |
5,002 |
Mar-01-2021, 08:06 PM |
|
|
Thread: Unable to Extract a web element
Post: RE: Unable to Extract a web element
I cant see attached image. If you show what you want get with images, I will try create script. |
|
kashcode |
Web Scraping & Web Development |
6 |
5,002 |
Feb-24-2021, 02:48 PM |
|
|
Thread: How to scrape and count star rating using Selenium and Python?
Post: RE: How to scrape and count star rating using Sele...
Usage of Selenium is mandatory? If not then you can simply send GET request to https://shopee dot sg/api/v2/user/get_rating_summary?userid=275295198 response will be json with all review data.
{"vers... |
|
kashcode |
General Coding Help |
1 |
3,322 |
Feb-15-2021, 02:45 PM |
|
|
Thread: Reload flask current page
Post: RE: Reload flask current page
I suggest reload some page parts with ajax call to backed, this call to backed can be with some interval.
function fetchdata(){
$.ajax({
url: 'fetch_details.php',
type: 'post',
success: functi... |
|
kashcode |
Web Scraping & Web Development |
2 |
5,150 |
Jan-08-2021, 08:19 AM |
|
|
Thread: Reliable rabbitmq consumer
Post: Reliable rabbitmq consumer
Hello,
Maybe someone can share production ready rabbitmq consumer code? |
|
kashcode |
General Coding Help |
1 |
1,578 |
Dec-18-2020, 02:18 PM |
|
|
Thread: Convert xml to dict and group data and sum totals
Post: RE: Convert xml to dict and group data and sum tot...
I solved my problem https://repl.it/@kashcode/TubbyWideFactors |
|
kashcode |
General Coding Help |
5 |
2,405 |
Aug-15-2020, 12:10 PM |
|
|
Thread: POST request with form data issue web scraping
Post: RE: POST request with form data issue web scraping
On line 27 you send GET not POST |
|
kashcode |
Web Scraping & Web Development |
1 |
2,703 |
Aug-14-2020, 10:25 AM |
|
|
Thread: Scraping Data issues
Post: RE: Scraping Data issues
If problem is only in session then read docs https://requests.readthedocs.io/en/maste.../advanced/ |
|
kashcode |
Web Scraping & Web Development |
1 |
3,910 |
Aug-14-2020, 10:20 AM |
|
|
Thread: Scraping a dynamic data-table in python through AJAX request
Post: RE: Scraping a dynamic data-table in python throug...
In python part you also need get token and when you have token use it in request like you use it in javascript part. |
|
kashcode |
Web Scraping & Web Development |
1 |
3,893 |
Aug-14-2020, 10:13 AM |
|
|
Thread: Extract data from a table
Post: RE: Extract data from a table
Table loads async after page loaded, therefore you don't see data. And I cen't see any request in browser network tab where page get all this data. But with other tools like https://github.com/puppete... |
|
kashcode |
Web Scraping & Web Development |
3 |
2,698 |
Aug-14-2020, 10:07 AM |