mirror of
https://github.com/discourse/discourse.git
synced 2025-04-02 03:55:57 +08:00
FIX: Google Groups scraper failed to login
This commit is contained in:
parent
fd38ed3631
commit
d7ccb58559
@ -158,12 +158,11 @@ def login
|
|||||||
get("https://google.com/404")
|
get("https://google.com/404")
|
||||||
|
|
||||||
add_cookies(
|
add_cookies(
|
||||||
"accounts.google.com",
|
|
||||||
"myaccount.google.com",
|
"myaccount.google.com",
|
||||||
"google.com"
|
"google.com"
|
||||||
)
|
)
|
||||||
|
|
||||||
get("https://accounts.google.com/servicelogin")
|
get("https://myaccount.google.com/?utm_source=sign_in_no_continue")
|
||||||
|
|
||||||
begin
|
begin
|
||||||
wait_for_url { |url| url.start_with?("https://myaccount.google.com") }
|
wait_for_url { |url| url.start_with?("https://myaccount.google.com") }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user