Check if email:pass are valid
put your combo in email:pass and run main.rb
basic checker can be updated with threads
test@gmail.com:abcde - None
email:password - plan
- Replaced
require 'net/http'withrequire 'http', which is a faster HTTP client library. - Replaced
Net::HTTP::PostwithHTTP.post, which is a simpler and faster way to make an HTTP POST request. - Replaced
URI.parsewithURI, which is a shorthand for creating a newURI::HTTPobject. - Replaced
Net::HTTP.startwithHTTP.post, which is a simpler and faster HTTP client library. - Replaced
request.content_type = "application/json"withjson: { ... }, which is a shorter and more concise way to set theContent-Typeheader toapplication/jsonand send a JSON body in the request. - Replaced
JSON.dumpwith#to_json, which is a method available on all Ruby hashes. It converts a hash to a JSON string. - Replaced
request["Authorization"] = "Bearer " + tokenwithheaders: { "Authorization": "Bearer " + token }, which is a shorter and more concise way to set theAuthorizationheader in the request. - Read the entire file into memory and made HTTP requests in parallel using
Concurrent::Promise. - Added a cache to store the results of HTTP requests and avoid making unnecessary requests.
- Updated the file with the results and removed invalid login credentials.