facebook_scrapper 0.3.5 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8b4862ec415a1092035a6806c55ccd7529fa9acc67c3c6840a51dd8efd2b3743
4
- data.tar.gz: 705ae2e7b4c1d2af28b8f89e7a373adee1013f1a8044cdf8aca92495202579f2
3
+ metadata.gz: c7eab26adca1abadb4ce1cda29412d1d1e79c6ee405118c907714fdb5201bb9b
4
+ data.tar.gz: b12591bf5d663258cfc68482e0b51dd30036f1f900029deb4e311de33f830934
5
5
  SHA512:
6
- metadata.gz: 2a69331199e1232c8faae9660faa98fd3c6fc1d2aa69b29677a8ab107d21eaaf50294902368d4c22a1d4c210c9916af5e123c3001913f3e3766c484f834a1af4
7
- data.tar.gz: c1b6cd4a7d5a2c207a5b56690ba93b54f7a11261c57ed8966ea4e22f7266fde6c7244cde22249c9a9a19c7c565c2fb9156f9818723dc0dcd4d5e861e441ebe2a
6
+ metadata.gz: 5b0c1cb8510cd5f69276e3e51b13193dfe543cae6dd275a7504bba7fd7bb631abde666cfe354482082baf283f41bd10c9ca4890a8d4a4004b8a401a279d3b8a4
7
+ data.tar.gz: 59faf1b648975fbcea4492a4ca0cf56782c3a14d5f46eb1c1e74fd83e181ac3018e2488b4732bd651a274a248b10b60bf3902f63444d5d32280a223e0e7bb8ae
@@ -1,6 +1,6 @@
1
1
  module FacebookScrapper
2
2
  class Post
3
- attr_accessor :owner, :text, :like_count, :comment_count, :like_link, :time, :post_owner_link, :comment_link, :more_link
3
+ attr_accessor :owner, :text, :like_count, :comment_count, :like_link, :time, :post_owner_link, :comment_link, :more_link, :post_link
4
4
 
5
5
  def initialize
6
6
  self.owner = ""
@@ -12,6 +12,7 @@ module FacebookScrapper
12
12
  self.comment_link = ""
13
13
  self.like_link = ""
14
14
  self.more_link = ""
15
+ self.post_link = ""
15
16
  end
16
17
 
17
18
  def to_h
@@ -143,7 +143,8 @@ module FacebookScrapper
143
143
  post.time = new_post.find_element(tag_name: "abbr").text
144
144
  post.post_owner_link = toWebUrl(all_links[0].attribute("href"))
145
145
  post.comment_link = toWebUrl(all_links[-4 - with_share].attribute("href"))
146
- post.like_link = toWebUrl(like_data.find_element(link_text: "Like").attribute("href"))
146
+ post.like_link = like_data.find_element(link_text: "Like").attribute("href")
147
+ post.post_link = toWebUrl(like_data.find_element(link_text: "Full Story").attribute("href"))
147
148
  post.more_link = all_links[-1].attribute("href")
148
149
 
149
150
  keyword_included = keywords.any? { |keyword| post.text.include?(keyword) }
@@ -1,3 +1,3 @@
1
1
  module FacebookScrapper
2
- VERSION = "0.3.5"
2
+ VERSION = "0.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facebook_scrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mujadded Al Rabbani Alif