A lot :)
This commit is contained in:
parent
aad67af0d1
commit
63fc206c27
153 changed files with 2043 additions and 646 deletions
|
|
@ -1,7 +1,12 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module LinkChecker
|
||||
UA = "Mozilla/5.0 (Android 4.4; Mobile; rv:41.0) Gecko/41.0 Firefox/41.0"
|
||||
module_function def http(input)
|
||||
response = Net::HTTP.get_response(URI.parse(input), {"User-Agent": UA})
|
||||
|
||||
module_function
|
||||
|
||||
def http(input)
|
||||
response = Net::HTTP.get_response(URI.parse(input), { 'User-Agent': UA })
|
||||
# debugger
|
||||
case response
|
||||
when Net::HTTPSuccess
|
||||
|
|
@ -13,4 +18,3 @@ module LinkChecker
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue