{"id":29272154,"url":"https://github.com/acook/blog_title","last_synced_at":"2025-07-05T00:10:39.128Z","repository":{"id":137791823,"uuid":"2339896","full_name":"acook/blog_title","owner":"acook","description":"Display the title of the rorcourse.tumblr.com blog.","archived":false,"fork":false,"pushed_at":"2011-09-07T19:55:40.000Z","size":89,"stargazers_count":8,"open_issues_count":0,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-11T04:12:58.512Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/acook.png","metadata":{"files":{"readme":"README.markdown","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":"2011-09-07T06:41:56.000Z","updated_at":"2023-03-11T04:27:13.550Z","dependencies_parsed_at":"2023-03-11T04:27:13.499Z","dependency_job_id":null,"html_url":"https://github.com/acook/blog_title","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/acook/blog_title","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fblog_title","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fblog_title/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fblog_title/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fblog_title/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acook","download_url":"https://codeload.github.com/acook/blog_title/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acook%2Fblog_title/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263636825,"owners_count":23492312,"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":"2025-07-05T00:10:38.496Z","updated_at":"2025-07-05T00:10:39.123Z","avatar_url":"https://github.com/acook.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Write a Class to Get the Title of the Latest Blog Entry\n======\n\nI've created a simple project structure with some code to get you started.\n\n0. Click the `Fork` button in the upper part of the screen\n    - right below  `Account Settings` and `Help` links\n0. One it is done forking clone the repo to your Projects directory\n    - `cd ~/projects` and then `git clone git@github.com:YOUR_GITHUB_LOGIN/blog_title.git`\n\n\nExpected Result\n======\n\nWhen you run `./blog_title.rb` it should display the title of the latest blog entry, for example:\n\n    $ ./blog_title.rb\n    Course Curriculum\n\n\nRequirements\n======\n\n0. It will need to accept a URL when you create a new object.\n0. Blog objects will need a \"latest_title\" method that returns the title of the latest blog entry.\n\n\nTools\n======\n\nWe're going to need to familiarize ourselves with a couple of tools in order to acomplish this task.\n\n\nnet/http\n------\n\nnet/http lets us obtain the body of a web page.\n\n- API: http://rubydoc.info/stdlib/net/1.9.2/Net/HTTP\n\nhpricot\n------\n\nhpricot parses HTML for us, so we don't have to.\n\n- API: http://rubydoc.info/gems/hpricot/0.8.4/frames\n- Take a look at these especially:\n    0. http://rubydoc.info/gems/hpricot/0.8.4/file/README.md#Load_an_HTML_Page\n    0. http://rubydoc.info/gems/hpricot/0.8.4/file/README.md#Search_for_Elements\n\n\nHints\n======\n\n0. Your class goes in `./lib/blog.rb`, don't change the `blog_title.rb`.\n0. You'll need to install the hpricot gem: `gem install hpricot`\n0. The XPath for the HTML element you want to look for is at: `/html/body/div[2]/div/div[2]/div/div/h3`\n0. You'll see the error `./blog_title.rb:15:in '\u003cmain\u003e': uninitialized constant Object::Blog (NameError)` and then you'll know you can start coding.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facook%2Fblog_title","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facook%2Fblog_title","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facook%2Fblog_title/lists"}