birdsong 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/birdsong/scrapers/scraper.rb +2 -2
- data/lib/birdsong/scrapers/tweet_scraper.rb +2 -2
- data/lib/birdsong/user.rb +1 -1
- data/lib/birdsong/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1808eed99ef9e1885a1935f212651f7da9d5a60dcf2d74d5988eca88fd962122
|
4
|
+
data.tar.gz: c7fc73864f0f71cbd4dfd7f038e02bdbfa11ff1091d8d1f2fd13f07ad71abefd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97a72857edf2f49da68729ac86f4cc1aa992e76d0f58bcaafc1b7595e9becb5859dcb17819929920833e477586c58cdc957a8c480a8036862f5df5e9fa7c57da
|
7
|
+
data.tar.gz: 874c0218358e28d827a67da10a0ef0dad45623deb0897c5dbf7939266fb2eaa23d40146d624acbb6a68cbd9bc02f36890be96bfe18affaa810e49bc919d3ff52
|
@@ -148,11 +148,11 @@ module Birdsong
|
|
148
148
|
# page.quit
|
149
149
|
|
150
150
|
# # Check if we're on a Instagram page already, if not visit it.
|
151
|
-
# unless page.driver.browser.current_url.include? "twitter.com"
|
151
|
+
# unless page.driver.browser.current_url.include? "twitter.com" || page.driver.browser.current_url.include? "x.com"
|
152
152
|
# # There seems to be a bug in the Linux ARM64 version of chromedriver where this will properly
|
153
153
|
# # navigate but then timeout, crashing it all up. So instead we check and raise the error when
|
154
154
|
# # that then fails again.
|
155
|
-
# page.driver.browser.navigate.to("https://
|
155
|
+
# page.driver.browser.navigate.to("https://x.com")
|
156
156
|
# end
|
157
157
|
|
158
158
|
# # We don't have to login if we already are
|
@@ -14,12 +14,12 @@ module Birdsong
|
|
14
14
|
# - Number of likes *
|
15
15
|
# - Hashtags
|
16
16
|
|
17
|
-
Capybara.app_host = "https://
|
17
|
+
Capybara.app_host = "https://x.com"
|
18
18
|
|
19
19
|
# video slideshows https://www.instagram.com/p/CY7KxwYOFBS/?utm_source=ig_embed&utm_campaign=loading
|
20
20
|
# login
|
21
21
|
graphql_object = get_content_of_subpage_from_url(
|
22
|
-
"https://
|
22
|
+
"https://x.com/jack/status/#{id}",
|
23
23
|
"/graphql",
|
24
24
|
"data,tweetResult,result"
|
25
25
|
)
|
data/lib/birdsong/user.rb
CHANGED
@@ -39,7 +39,7 @@ module Birdsong
|
|
39
39
|
|
40
40
|
@description = user_object[:description]
|
41
41
|
@url = user_object[:url]
|
42
|
-
@url = "https://www.
|
42
|
+
@url = "https://www.x.com/#{@username}" if @url.nil?
|
43
43
|
|
44
44
|
@followers_count = user_object[:followers_count]
|
45
45
|
@following_count = user_object[:following_count]
|
data/lib/birdsong/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: birdsong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Christopher Guess
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|