{"id":18492271,"url":"https://github.com/makevoid/sc2profiles","last_synced_at":"2025-05-14T00:32:48.440Z","repository":{"id":136508356,"uuid":"926539","full_name":"makevoid/sc2profiles","owner":"makevoid","description":"simple starcraft2 battle.net players profiles scraper + sinatra app ","archived":false,"fork":false,"pushed_at":"2014-11-09T18:52:04.000Z","size":256,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T06:02:47.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/makevoid.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-21T01:14:35.000Z","updated_at":"2014-11-09T18:52:05.000Z","dependencies_parsed_at":"2023-03-13T11:00:50.697Z","dependency_job_id":null,"html_url":"https://github.com/makevoid/sc2profiles","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fsc2profiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fsc2profiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fsc2profiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/makevoid%2Fsc2profiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/makevoid","download_url":"https://codeload.github.com/makevoid/sc2profiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254046224,"owners_count":22005557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T13:06:51.108Z","updated_at":"2025-05-14T00:32:48.418Z","avatar_url":"https://github.com/makevoid.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sc2Profiles\n\nI'm sorry but I haven't updated the scraping process because I didn't had time to play sc2 and update this. \nBut, if you are interested I can show you what to change in order to make it working again, it should be a matter of going to sc2.com and \nlooking for the updated css tags and maybe (no, surely :p) rework the scraping code a bit. Feel free to contact me for questions or anything in that case! \n\n    demo: [sc2profiles.makevoid.com](http://sc2profiles.makevoid.com) [inactive]\n\n## scrape starcraft2 battle.net profiles and view them with sinatra\n\nby makevoid and Dakkino\n\n\n### Installing:\n\n**Database:**\n\nmysql: \ncreate database sc2profiles_dev and/or edit the configuration in config/env.rb\n\n(optional)\nsqlite: if you prefer sqlite over mysql edit config/env.rb and Gemfile and switch the code commented with #sqlite over the one commented with #mysql.\n\n\n\n**Dependencies:**\n\nyou need ruby 1.9 with bundler gem installed (gem install bundler)\nthen run:\n\n    bundle install\n\nto install all the dependencies\n\n\n**Start the server:**\n\non osx/linux:\n\n    rackup    \n\nor (auto reloading)\n\n    shotgun\n\non windows:\n\n    ruby config.ru\n\n\n**Migrate:**\n\nvisit **http://localhost:port** in your browser (see the right port in the server log)\n\nyou should see a database error, then visit **http://localhost:port/migrate** to migrate the database\n\n**Scrape:**\n\nfinally visit **http://localhost:port/scrape** to start scraping the profiles, the table in / will be full of datas \n\n(note: it's better to remove these two routes in production. They're handy in development, sinatra is so easy that there is almost no need to use things like rake or thor to manage tasks in early prototyping phases,)\n\nalso change the style because this is made to match our sc2 team's site colors\n\nnote: you can edit public/profiles.txt and add your own profiles\n\n---\n\n**Load irb:**\n\n    irb -r ./config/env.rb\n\nthen the env will load with it's dm models and you can do something like:\n\n    Profile.first  #=\u003e first profile \n    Profile.all(race: \"zerg\") #=\u003e all zerg players\n    # ...\n\nnotes:  \n\n- works on win/osx/ubuntu\n- ruby 1.9 required\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Fsc2profiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmakevoid%2Fsc2profiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmakevoid%2Fsc2profiles/lists"}