mirror of https://github.com/freeCodeCamp/devdocs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
685 B
26 lines
685 B
module Docs
|
|
class Requests < UrlScraper
|
|
self.type = 'sphinx'
|
|
self.root_path = 'index.html'
|
|
self.links = {
|
|
home: 'https://requests.readthedocs.io/',
|
|
code: 'https://github.com/psf/requests'
|
|
}
|
|
self.release = '2.28.1'
|
|
self.base_url = "https://requests.readthedocs.io/en/latest/api/"
|
|
|
|
html_filters.push 'requests/entries', 'sphinx/clean_html'
|
|
|
|
options[:container] = '.body > section'
|
|
|
|
options[:attribution] = <<-HTML
|
|
© 2011-2022 Kenneth Reitz and other contributors<br>
|
|
Licensed under the Apache license.
|
|
HTML
|
|
|
|
def get_latest_version(opts)
|
|
get_latest_github_release('psf', 'requests', opts)
|
|
end
|
|
end
|
|
end
|