class U3d::UnityForums
Public Instance Methods
page_content(url)
click to toggle source
# File lib/u3d/unity_versions.rb, line 38 def page_content(url) fetch_cookie request_headers = { 'Connection' => 'keep-alive', 'Cookie' => @cookie } UI.verbose "Fetching from #{url}" Utils.page_content(url, request_headers: request_headers) end
pagination_urls(url)
click to toggle source
# File lib/u3d/unity_versions.rb, line 29 def pagination_urls(url) # hardcoded for now # otherwise maybe # # <div class="PageNav" data-page="7" data-range="2" data-start="5" data-end="9" data-last="10" data-sentinel="{{sentinel}}" data-baseurl="threads/twitter.12003/page-{{sentinel}}" # <span class="pageNavHeader">Page 7 of 10</span> [url, "#{url}page-2"] end