First use this approach to create a python based browser, call it browser.py and leave it in pi’s home directory.
Set up .xinitrc to contain the following:
xset s off
xset s noblack
The first three commands disable screen-blanking and the last one runs a script called loop, which looks like this:
This makes sure that the browser automaticly restarts if it crashes, or if you kill the process manually, in order to reload the website. Finally take care of permissions:
chmod 755 .xinitrc browser.py loop
Then use raspi-config to make sure that the system logs in as “pi” without waiting for password, and you’re done.