class ReferrerPolicy:
Known subclasses: scrapy.spidermiddlewares.referer.NoReferrerPolicy
, scrapy.spidermiddlewares.referer.NoReferrerWhenDowngradePolicy
, scrapy.spidermiddlewares.referer.OriginPolicy
, scrapy.spidermiddlewares.referer.OriginWhenCrossOriginPolicy
, scrapy.spidermiddlewares.referer.SameOriginPolicy
, scrapy.spidermiddlewares.referer.StrictOriginPolicy
, scrapy.spidermiddlewares.referer.StrictOriginWhenCrossOriginPolicy
, scrapy.spidermiddlewares.referer.UnsafeUrlPolicy
Undocumented
Method | origin |
Return serialized origin (scheme, host, path) for a request or response URL. |
Method | origin_referrer |
Undocumented |
Method | potentially_trustworthy |
Undocumented |
Method | referrer |
Undocumented |
Method | strip_url |
https://www.w3.org/TR/referrer-policy/#strip-url |
Method | stripped_referrer |
Undocumented |
Method | tls_protected |
Undocumented |
Class Variable | name |
Undocumented |
scrapy.spidermiddlewares.referer.NoReferrerPolicy
, scrapy.spidermiddlewares.referer.NoReferrerWhenDowngradePolicy
, scrapy.spidermiddlewares.referer.OriginPolicy
, scrapy.spidermiddlewares.referer.OriginWhenCrossOriginPolicy
, scrapy.spidermiddlewares.referer.SameOriginPolicy
, scrapy.spidermiddlewares.referer.StrictOriginPolicy
, scrapy.spidermiddlewares.referer.StrictOriginWhenCrossOriginPolicy
, scrapy.spidermiddlewares.referer.UnsafeUrlPolicy
Undocumented
https://www.w3.org/TR/referrer-policy/#strip-url
If url is null, return no referrer. If url's scheme is a local scheme, then return no referrer. Set url's username to the empty string. Set url's password to null. Set url's fragment to null. If the origin-only flag is true, then:
Set url's path to null. Set url's query to null.
Return url.