Forums

Problem with selenium (firefox) and power bi url

Hi! i would like to scrape a power bi url, but i get an error like this:

<head xmlns="http://www.w3.org/1999/xhtml"> <title>Problem loading page</title> <link rel="stylesheet" href="chrome://global/skin/netError.css" type="text/css" media="all" /> <!-- If the location of the favicon is changed here, the FAVICON_ERRORPAGE_URL symbol in toolkit/components/places/src/nsFaviconService.h should be updated. --> <link rel="icon" type="image/png" id="favicon" href="chrome://global/skin/icons/warning-16.png" />

<script type="application/javascript"><![CDATA[
  // Error url MUST be formatted like this:
  //   moz-neterror:page?e=error&u=url&d=desc

My code works in my local computer using chromedriver without any extra code. I really need this because i use many power bi url. Thanks in advance.

I have other codes that works normally in this platform

The url i want to scrape is: https://app.powerbi.com/view?r=eyJrIjoiZTY1YmJmZjMtOGIzMS00ZTk5LTllNmMtMDVlMGEwNjJlYTFhIiwidCI6IjgwZDQ5YjM4LTkwYzYtNDJkYi04MDkwLTVkZGY4OTE5YjU2YiIsImMiOjR9

I can't tell what the problem is from that, but I suspect it's because the version of firefox that we have pre-installed is very old and perhaps the site is incompatible. You can try using Chrome, which is significantly more recent, but we'd have to enable our new, experimental virtualisation system. Let us know if you'd like to try that.

I really apreciate it. Thanks!

No problem. I have updated your account. New consoles will use the new system and your web apps will use it once they've been reloaded. Scheduled tasks will use it the next time they run and always on tasks after you stop and restart them. See https://www.pythonanywhere.com/forums/topic/27202/ for some example code.

Thank you very much! everything is working now!