title: Python and Selenium - PHPSESSID cookie is logging me in
body: <p>I am trying to scrape data off of a website to create a list of the ten most recent rolls. My code:</p>
  
  <pre><code>from lxml import html
  import requests
  
  page = requests.get('http://www.csgodouble.com/')
  tree = html.fromstring(page.content)
  
  #List of past rolls
  rolls = tree.xpath('//div[@class="past"]/text()')
  
  print 'Rolls: ', rolls
  </code></pre>
  
  <p>Why is no data outputted? The python shell only prints </p>
  
  <blockquote>
    <p>Rolls:  [ ]</p>
  </blockquote>
  
  <p>Thank you in advance.</p>
  
  <p>EDIT: Problem with the PHPSESSID. I was also able to get PhantomJS working, but running Firefox so I can see the webpage. Thank you.</p>
  
  <pre><code>from selenium import webdriver
  import requests
  
  driver = webdriver.Firefox()
  driver.set_window_size(1120, 550)
  driver.add_cookie({'name': 'PHPSESSID', 'value': '&lt;MY PHPSESSID&gt;'})
  print(driver.get_cookie('PHPSESSID'))
  driver.get("http://www.csgodouble.com/index.php")
  
  #rolls = (driver.find_element_by_xpath('//div[@class="past"]').text)
  #print 'Rolls: ', rolls
  </code></pre>
  
  <p>The PHPSESSID is not logging me in. When I run the code, it only brings me to the site.</p>