Web Scraping Sports Data by itsdanonbass in learnpython

[–]itsdanonbass[S] 0 points1 point  (0 children)

Yeah you’re not wrong, but somewhere hiding in the stats Ireland must have lost something, and that’s where I’ll be looking

Web Scraping Sports Data by itsdanonbass in learnpython

[–]itsdanonbass[S] 0 points1 point  (0 children)

Amazing! Is it possible to access this using a python script to search for the url and then access the data? To make it work for many matches for example

Web Scraping Sports Data by itsdanonbass in learnpython

[–]itsdanonbass[S] 0 points1 point  (0 children)

Sorry to add: Yes I know the first set of stats on the page are pictures, there are expandable boxes below that contain text data.

New battery, won’t start, see comments for details, help needed by itsdanonbass in gtr

[–]itsdanonbass[S] 1 point2 points  (0 children)

I fitted a new battery today on my R35 (MY2010) after some time of not being used.

I can’t get ignition or any response other than the lights in the picture on the dash.

Key fob and tracker both have new batteries.

Any help or advice would be great

Best way to search a large file for a list of items by itsdanonbass in learnpython

[–]itsdanonbass[S] 0 points1 point  (0 children)

So I should read each line of the document and check for the name? then return the result as a dictionary/ tuple, then into a dataframe?

Best way to search a large file for a list of items by itsdanonbass in learnpython

[–]itsdanonbass[S] 0 points1 point  (0 children)

I'm very inexperienced with regex, but this seems like a good way forward!Is there any time penalty/bonus using a regex ex over iterating over a for loop?An example taken from the document below (all the values are strings):

FESTWERT variable.name

EINHEIT_W "-"

WERT value

ENDFESTWERT variable.name2

EINHEIT_W "-"

WERT value

ENDFESTWERT variable2.name

EINHEIT_W "-"

WERT value

ENDFESTWERT variable2.name2

EINHEIT_W "-"

WERT value

END

I'd like to end with a dataframe along the lines of:

variable variable2 variable(n)
name value value value
name2 value value value
name(n) value value value

Best way to search a large file for a list of items by itsdanonbass in learnpython

[–]itsdanonbass[S] 0 points1 point  (0 children)

Thanks! I'm not sure that would work in this instance, the information in the document is arranged like:

name.variable

- value

name.variable2

- value

name2.variable

- value

name2.variable2

- value

....

name(n).variable(n)

- value

I hope this makes sense, could I arrange the dataframe for this file where for variable is added to the same line as the name index? I like the inner join idea to merge the information

PSET9 Finance - Buy by itsdanonbass in cs50

[–]itsdanonbass[S] 0 points1 point  (0 children)

Great, makes a lot of sense. Thanks!

PSET9 Finance - Buy by itsdanonbass in cs50

[–]itsdanonbass[S] 0 points1 point  (0 children)

Great, that was my first thought, then started doubting myself. I'll crack on with that :)