medium_scraper 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab7d1d8baee8859ccf7d6bad8b42979056cdc6a1
4
- data.tar.gz: 57f6ba066db3cdf2e553f06a9c4473dc846d4d6c
3
+ metadata.gz: ed1949dd3be16357972561a543a18eb01ab7fc9e
4
+ data.tar.gz: c8c94f48b9deaf3625b4a07be77af3751bfd8501
5
5
  SHA512:
6
- metadata.gz: ebff9fe3a3775b3113fe3168edb71f120d7acfa599c4e28e5c0df88b8646a5e3a60a6e59cb10aeddf6a4845c6ed811b79cb545e3bb16d31c4b72530b90ebfd8d
7
- data.tar.gz: c0a3669867c9274d39d3ce43badf1f633c874e154f032a986fca16eba434efd76190985bed5ba1ed59ab6ecd7f6d811dd5f0466d06cecfbd3911a09dbdbd8785
6
+ metadata.gz: 4e5eb32c5426bec7711928f03cd50264da61e2c47347c5c4a67f5f997b53f7e15d9627751a2d13035b00a73ee9ac3d20cde4ab12dcee18e41264ebff5cbad53a
7
+ data.tar.gz: f828cbd6c2ec62e1e0dd0ef2178590fac7f9500e76bf7026bf13337c6aec2f2f2f2fe25e28623c39cfc83ab2cf8b6d4c4c3015cd53295c376e8f2688f1fd71e8
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
- # MediumScraper
1
+ # Medium Scraper
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/medium_scraper`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ A read-only api for the Medium blogging platform to retrieve basic user information and the latest posts in one simple command.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
5
+ I built this for the sole purpose of being able to display some of my latest blog posts on my personal site. So if you're looking for similar functionality, this should work well for you.
6
6
 
7
7
  ## Installation
8
8
 
@@ -22,7 +22,11 @@ Or install it yourself as:
22
22
 
23
23
  ## Usage
24
24
 
25
- TODO: Write usage instructions here
25
+ To retrieve an object with user and post information:
26
+
27
+ ```ruby
28
+ MediumScraper::Post.latest <username>
29
+ ```
26
30
 
27
31
  ## Development
28
32
 
@@ -1,3 +1,3 @@
1
1
  module MediumScraper
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -32,6 +32,7 @@ module MediumScraper
32
32
  post = {}
33
33
  post[:title] = blob[1]['title']
34
34
  post[:subtitle] = blob[1]['content']['subtitle']
35
+ post[:createdAt] = blob[1]['virtuals']['createdAtEnglish']
35
36
  posts << post
36
37
  end
37
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: medium_scraper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Waits
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-30 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler