Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: More non english characters
Post: RE: More non english characters

(Apr-17-2021, 07:24 PM)snippsat Wrote: Do print(repr(strLeagueName)) If get this it should work,if not try run from command line and not use Ide/editor. >>> print(repr(strLeagueName)) '1a ...
johnboy1974 General Coding Help 8 4,496 Apr-23-2021, 01:44 PM
    Thread: More non english characters
Post: RE: More non english characters

(Apr-17-2021, 05:33 PM)snippsat Wrote: You most be messing up something on your side,how do you get strLeagueName? If i write 1a Divisió the output will be correct just the same as with Diósgyőr. M...
johnboy1974 General Coding Help 8 4,496 Apr-17-2021, 05:52 PM
    Thread: More non english characters
Post: RE: More non english characters

(Apr-17-2021, 03:13 PM)johnboy1974 Wrote: (Apr-17-2021, 11:48 AM)snippsat Wrote: Your previous Thread There talk about using json and not text when get data from API. So if want to write as text ...
johnboy1974 General Coding Help 8 4,496 Apr-17-2021, 04:06 PM
    Thread: More non english characters
Post: RE: More non english characters

(Apr-17-2021, 11:48 AM)snippsat Wrote: Your previous Thread There talk about using json and not text when get data from API. So if want to write as text file or something else use always utf-8 enco...
johnboy1974 General Coding Help 8 4,496 Apr-17-2021, 03:13 PM
    Thread: More non english characters
Post: More non english characters

Hi, When I read from JSON, it's recognising the special characters however when using the write funciton, it has started falling over. Not sure why but all of a sudden as I introduced Asian countrie...
johnboy1974 General Coding Help 8 4,496 Apr-17-2021, 11:32 AM
    Thread: Web scraping Possible JavaScript issue
Post: RE: Web scraping Possible JavaScript issue

(Apr-11-2021, 04:30 AM)ndc85430 Wrote: Don't they have an API you can use instead of scraping the page? They do but you need to be part of some developer network. I applied for that but was rejecte...
johnboy1974 General Coding Help 2 2,074 Apr-11-2021, 08:53 AM
    Thread: Web scraping Possible JavaScript issue
Post: Web scraping Possible JavaScript issue

Hi, I'm trying to scrape the values from the following url 'https://sports.williamhill.com/betting/en-gb/in-play/football' and using requests.get to call it. When I inspect the element and search fo...
johnboy1974 General Coding Help 2 2,074 Apr-10-2021, 07:55 PM
    Thread: Unable to convert request response.
Post: RE: Unable to convert request response.

(Apr-04-2021, 08:58 PM)snippsat Wrote: Usually so dos API give back json,so should not use text. response = requests.request("GET", url, headers=headers, params=querystring) json_data = response.jso...
johnboy1974 General Coding Help 4 3,043 Apr-05-2021, 08:49 AM
    Thread: Unable to convert request response.
Post: Unable to convert request response.

Hi, I'm trying to convert a response which I think is in Unicode? I am using the requests library to get data from an API. I am running the following: import requests url = "https://api-football-...
johnboy1974 General Coding Help 4 3,043 Apr-04-2021, 08:17 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020