mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 19:36:22 +00:00
encontrar páginas y distinguir si fueron cyborgs o no
This commit is contained in:
parent
51c2fdf6d6
commit
0342455955
1 changed files with 3 additions and 0 deletions
|
@ -6,4 +6,7 @@ class AccessLog < ApplicationRecord
|
||||||
#
|
#
|
||||||
# @see {https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
|
# @see {https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
|
||||||
scope :completed_requests, -> { where(request_method: 'GET', request_completion: 'OK', status: [200, 304]) }
|
scope :completed_requests, -> { where(request_method: 'GET', request_completion: 'OK', status: [200, 304]) }
|
||||||
|
scope :non_robots, -> { where(crawler: false) }
|
||||||
|
scope :robots, -> { where(crawler: true) }
|
||||||
|
scope :pages, -> { where(sent_http_content_type: ['text/html', 'text/html; charset=utf-8', 'text/html; charset=UTF-8']) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue