This is the source repository of ewen's blog. The website is generated via blogdown and deployed on Netlify.
ewenme / squads Goto Github PK
View Code? Open in Web Editor NEWhistoric data on European football (soccer) clubs' playing squads
historic data on European football (soccer) clubs' playing squads
Any chance of updating the CSV data for last season?
This has been very useful over at www.thesportsdb.com :D
Hi,
Have you run this recently? I'm trying to create a transfermarkt web scraping app and was hoping to use your project as a template. But I'm getting the following error in the scrape_club_meta function in the file 10-Global.R at the line:
clubs <- data_frame(league_url=league_url, league_name=league_name,
club_name=club_names, club_url=club_urls, season=season)
Error: Variables must be length 1 or 21.
Problem variables: 'club_url'
After trying to work out what was wrong all that seems to come up is that there might be carriage return line feeds in the list of nodes that gets returned, but I've tried putting a gsub in there and have hit a brick wall on this. I thought it might be that transfermarkt have changed their website since you created this, but just wondered if this still worked for you.
I'm fairly new to R so my expertise is limited, although I do have programming experience in other areas.
I am using Visual Studio 2017 and Microsoft R Client 3.3.2.0. You might be using an older version, which might be why yours might work and mine doesn't :-(
Any help would be much appreciated,
Matt
p.s. I also get a few other errors and had to make a few changes:
I had to change map_dfr to map_df as it couldn't find this function.
And I had to remove the package hrbrthemes as I got the following error:
package ‘hrbrthemes’ is not available (for R version 3.3.2)
Oh, and I had to change the file path in the source at the top of 01-Scrape.R to have the full path to the file, but that is probably just due to how I have my working directory set up, I just thought I'd mention these in case anyone else has these issues getting this to run, they're not really issues.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.