I am trying to access a specific site using python, and no matter which lib I use I just can't seem to access it.
I have tried Selenium+PhantomJS, I have tried requests and urllib.
Whenever I try to access the site from the browser I get a json file, and whenever I try to access it from a python script I get an html file (which has a huge minified script inside it)
I suspect this site is detecting I'm sending the request headlessly and is blocking my requests, but I can't figure out how.
The site address is: http://www.yesplanet.co.il/presentationsJSON
I would very much appreciate if anyone can point me in the right direction. Thanks!
EDIT: Here's my selenium code:
from selenium import webdriver
driver = webdriver.PhantomJS()
driver.get("http://www.yesplanet.co.il/presentationsJSON")
source = driver.page_source
At this point I print the source and see it is not what I expected.
Here is a requests implementation that also does not work:
import requests
res = requests.get("http://www.yesplanet.co.il/presentationsJSON")
source = res.content
The same happens here..