Skip to content

Commit

Permalink
Update scraper.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
andyhollands committed Mar 2, 2020
1 parent 4b1176b commit 291a5d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scraper.rb
@@ -1,7 +1,9 @@
require 'mechanize'
require 'scraperwiki'
br.addheaders = [('User-agent', 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.1) Gecko/2008071615 Fedora/3.0.1-1.fc9 Firefox/3.0.1')]

agent = Mechanize.new{|agent|agent.user_agent_alias = 'Windows Chrome'}{|a| a.ssl_version, a.verify_mode = 'SSLv3', OpenSSL::SSL::VERIFY_NONE}
agent = Mechanize.new{|a| a.ssl_version, a.verify_mode = 'SSLv3', OpenSSL::SSL::VERIFY_NONE}
agent.user_agent_alias = 'Mac Safari'
urlbase = 'https://www.domain.com.au/sale/?suburb=melbourne-vic-3000&ptype='
filter = '&price=any-1500000&sort=dateupdated-desc'

Expand Down

0 comments on commit 291a5d0

Please sign in to comment.