How to scrape data from webpage without inspect function? - python-3.x

I'm trying to scrape all data from the link below.
http://aeroportos.weebly.com/fuel-prices.html#.W7JVkWj7Sbi
However, it seems like there is no option to perform right click, inspect & then us BeautifulSoup...
Any tricks on how to deal with this?
Example on data I would like to scrape (for all rows)
So i'm trying to create an output with in the rows all locations, and columns all prices / codes / ...
Many thanks!
Sibren

I have checked your site you can make a right click on the option that are on the top for selection of menu, and then drag down to div. Then from this div you can extract your required elements or you can copy your xpath.

Right click on the blue "Home" tab. You will be able to click "inspect"

Related

Does any browser / add-on have at Inspect Element the option to display (highlight) only modified and new added values?

As web designer maybe you use daily the browser (Firefox / Chrome) Inspect Element tool more than browsing.
Sometimes to obtain the desired result is very complicated, the CSS changes & the new values added thru browser Inspect Element tool does not apply to only one element (div, p, span etc). After you accomplish the desired result do you have the option do highlight the values that was modified and new values added with a different color or in a separately menu / section?.
For example:
Display with yellow background modified values.
Display with red background new values added.
Question: Does any browser / add-on have at Inspect Element the option to display (highlight) only modified and new added values?
Of course, will be so gorgeous to have a separate menu / section to display separately all modified & new values inserted.
I can't believe it, but Inspect Element in Firefox has exactly what I've looking for:
1. Highlight modified and new added values
2. Copy modified rules
Now you can style at once multiple div's / span's / paragraphs, pseudo-elements etc till you'll accomplish your desired result. After that you can copy from one place all modified rules in different elements, at a 1 click!
If you use Inspect Element for CSS as a right little panel / sidebar (how I use) => see in picture the "blue arrow" (click that black arrow and menu "Changes" will appear).
I hope to help others this great feature of Firefox (well hidden), which will save you a lot of time!
I do not find this function in Chrome browser (or is better hidden than in Firefox).

Clicking checkbox on an intranet web page not working in VBA using Internet Explorer 11

I am stuck at a specific point in coding VBA. Using VBA I am logging onto an Intranet portal which is a file management system and opening a series of dynamic web pages one after the other. Using VBA I am trying to get a checkbox element checked. Once this element is checked, all sub-elements appearing in a table below get checked automatically. After this I need to initiate download of all the selected files. However, I cannot get the checkbox element "checked".
Here is the HTML as it appears on the web-page. I cannot share the link as it is intranet and confidential.
Link to the HTML as I am not allowed to post images yet
Here is my VBA code:
Set inpute = objIE.Document.queryselector("div[id=gridx_Grid_2] div div div table tbody tr td span[aria-checked=false]")
inpute.setAttribute("aria-checked") = True
inpute.Click
When the above code is run, the "aria-selected" attribute changes to "true" in the HTML but Click has no effect on the checkbox.
I have tried using the getElementbyClassName method and using Click after that to no avail.
Please help me out on this issue. Do let me know in case you need any other information.
This solution from Zwenn worked perfectly:
First of all, a checkbox has no click event. On topic: Because the whole List of other checkboxes will be marked by marking the one in question, I'am pretty sure the one in question triggers a HTML event like change when you mark it manually. You must check which event it is and trigger it with VBA. You can look for the event with FireFox or Chrome, but not with the IE. Look here how to do that and how to handle with events:
Automate IE via Excel to fill in a dropdown and continue
– Zwenn 14 hours ago

In Excel, is there a way to link a dropdown menu to specific data?

Essentially what I have done so far is create a dropdown menu using the Data Validation tab within the 'Data' tab in Excel. Using a SS I will show what exactly I'm trying to do.
If this can also potentially be done with a vba macro please let me know.
Essentially, when I change the data (where the blue arrow is) I want different data values to appear in the table (in the red circle) for each different item in the dropdown box
Please let me know if this is possible in Excel, thanks in advance for the help!

How can I show the selected item centred of the pivot header in UWP?

By default the item selected from the pivot header appears on the left side. This behavior can be changed so that it appears centered or right side?
I have a list of 20 items and therefore they don't appear all at the pivot header. So it is visually more appealing if the selected item appears centered on the screen.
Currently is working like the follow image:
enter image description here
I would like it will work like the follow image:
enter image description here
Here's what you need, skip to 26:30.
https://mva.microsoft.com/en-US/training-courses/xaml-for-windows-10-layout-14328?l=cEHXB74sB_4304819052
There's a lot to it, but you can do it using the Pivot control.
Best of luck.
please check this post
https://blog.hompus.nl/2015/09/04/responsive-pivot-headers-in-universal-windows-platform-apps/
you need to modify HorizontalContentAllignment property to center the content
Here is some example modifying the style with setters

Spotfire hyperlink in cross table

Has anyone able to make a column to be hyperlink in cross table in Spotfire? I can set the column to Link Render in regular table, but not in cross table.
This isn't supported in Spotfire cross tables. However, you can use a graphical table and configure it such that clicking on a cell will navigate to a target url by configuring the "Action" button in the Axes settings so that it will perform an action upon click, and then use a small IronPython script to open the target url in a browser
I think it's not possible in crosstable. As #TWAndrews says, you can use a graphical table and for example, create an icon and perform action on click on this icon. This action could be a link to navigate in the Dashboard, a http:// link, and more other possibilities.
Use a link in a crosstable will work in webplayer and in computer software.

Resources