Coder Social home page Coder Social logo

squads's Introduction

ewenme

This is the source repository of ewen's blog. The website is generated via blogdown and deployed on Netlify.

squads's People

Contributors

ewenme avatar imgbotapp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

squads's Issues

Error: Variables must be length 1 or 21. Problem variables: 'club_url'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.