facebook_scrapper 0.4.0 → 0.4.1
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 +4 -4
- data/lib/facebook_scrapper/scrapper.rb +2 -4
- data/lib/facebook_scrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f6ccc3fa5452f030348b969b1782a4b9aeac5236b23d6c91097fa22c7bea6bf
|
|
4
|
+
data.tar.gz: a609d4af1cefbbf512e29bba73554ff315e9bbd58d47d50c5ecddc0a0b9bd71c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 439517c3ba643bad8e7b447818e6658ed62ca291537abf04fb436cbef85c2e3a5274feeb9c9a203be756b9bc2af7c9fb4ab0a4e9494d743985b562919f7a70a2
|
|
7
|
+
data.tar.gz: ab1d1ba3100b523f2dce74eff037ba910c6323f72217e04be85c6a4bbdbf1f49c6ab50503644ff7fee345610b856a4a70fdcd0dbc76c5e411e5ab3eb445697f3
|
|
@@ -131,10 +131,8 @@ module FacebookScrapper
|
|
|
131
131
|
post = Post.new
|
|
132
132
|
all_links = like_data.find_elements(tag_name: "a")
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
return nil
|
|
136
|
-
|
|
137
|
-
with_share = like_data.find_elements(link_text: "Share").empty? ? 1 : 0
|
|
134
|
+
with_share = like_data.find_elements(link_text: "Share").empty? ? 0 : 1
|
|
135
|
+
return nil if new_post.find_element(tag_name: "h3").text.include?("Suggested Groups")
|
|
138
136
|
|
|
139
137
|
post.owner = new_post.find_elements(tag_name: "a")[0].text
|
|
140
138
|
post.text = new_post.find_element(tag_name: "p").text
|