Get a notification when questions get posted
Why would you use stackexchange.com and only take ones with the title of stackoverflow.com? That's a huge waste. 

You could change your url from https://stackexchange.com/questions?tab=realtime to https://stackoverflow.com/questions?tab=realtime.

However, actually visiting the website the way you are is hacky and overkill. Instead of web scraping, use the Stackexchange API.

There is no way to get a notification when a new question is posted. You will have to make a call every time you want the latest results.

Edit: there may be a way to get notifications, see vogel612's comment:


  there is websockets to receive notifications when a new question is
  posted. To my knowledge these are very much undocumented and easier to
  get access to with a userscript (which would imply changing to
  javascript), but it's not like there's no way to receive notifications
  from SE directly.