Scraping a FLEX container with multiple variables - web-scraping

I have a web page with a FLEX container with three variables; 2022, 2023 and 2024. I would like to scrap values for each of the individual years. The code I have written manage to scrap the data for year 2023 and it seems like thats the default year / active year.
<div class="styles_root__eFwVk">
<div class="styles_element__h3Uj_">2022</div>
<div class="styles_element__h3Uj_ styles_active__kSmx5">2023</div>
<div class="styles_element__h3Uj_">2024</div></div>
The data for each year is presented in a table with several rows and in the same format for every year. I can click on another year and data for that year is presented, but only one year at the time is presented. Here is an example from the table:
<tr class="styles_tableRow__tM48b"><td>P/S</td><td>1,14</td></tr>
How can I "activate" year 2022 (2024) and scrap the underlying data?

Related

Fullcalendar Year View other than January to December

Does anyone know a way to base a Fullcalendar Year View with a different span of dates?
A typical US school Year is from July 1st thru June 30th of the next year. I would like to display it that way when using a year view. Currently Fullcalendar displays a Jan-Dec calendar year which I can totally understand.
I have tried setting the year in the listYear view, I have tried setting the validRange to
validRange: {
start: '2019-07-01',
end: '2020-06-30'
}
John

How to hide all year in datepicker except a year before today in ext.net

I have a problem with datepicker (datefield component) using ext.net, so in the datepicker that i use is only show month and year, however i can't eliminate (hide mode, not disable) another year which I don't want displayed in the selection.
The datepicker :
As you can see in that image above, i only use month and year but i can't figured out how to hide or remove the other year (only year) except this year and a year before now.
So the expected result shoud be in the year picker only show 2018 and 2019 because this year is 2019 and a year before now is 2018.
The code that i implement in in .aspx :
<ext:DateField runat="server" ID="datePicker1" Type="Month" Format="Y" AnchorHorizontal="50%" ></ext:DateField>
Please help.

Pageviews per country per month in GA

I want to plot pageviews per country and per month in google analytics so I have a result like this:
Month / Country / Pageviews
October 2014 / Germany / 45.554
October 2014 / Russia / 32.435
...
November 2014 / Germany / 48.453
November 2014 / Russia / 33.786
...
I have tried this:
Audience -> Overview I have selected a long period and plot per month. Then I can get a country breakdown for that period but not per month.
Also it looks like I can only retrieve "Sessions" and not "pageviews" per country. Also in the detailed report, pageviews does not even show up.
So I tried this crazy workaround:
Behavior -> Site Content -> Content Drilldown
In the table below I have selected "country" in the 2nd dimension. Now I see each content drilldown per country and I also see the pageview. But I cannot group it per month. So I could now sort by countries, show all rows (a few thousend) and export via Excel to group countries together to have the pageviews per country in that period. I would have to repeat that for every month I want to look at -> lot of work.
Is there an easier solution to this?
Have you tried creating a custom report?
In your GA account, go to Customization, and then put in your metrics and dimensions.
Then click, Save.
You'll now have a custom report that you can email to yourself every month.

How can I sort a drop down list?

I have a drop down list being populated from a database with
<td >Start Week Ending Date:</td>
<td class="data"><select data-bind="options: weekEndingDates, value: selectedStartWeekEndingDate, optionsText: 'Text'"></select></td>
In my database the dates are stored like 12-21-2014, 12-28-2014, 1-4-2015, 1-11-2015, etc. I would like them to be sorted as such (by year then month then day). However, when displayed in the dropdownlist that I explained above, they are sorted like a string. So when I have the month of October entered for 2014 AND 2015 it no longer displays them in order by year but instead shows them something like: 10-12-2014, 10-18-2015, 10-19-2014, 10-25-2015, etc.
Clearly this is very confusing especially since I removed the January dates for 2014, the drop down list starts with 2015 dates leading to many users thinking there are no 2014 dates available to select. Is there any way to choose how to sort this list so that it sorts by year first then month then day?
I'm not sure of your platform, but one technique I've used is having two columns, one with the data and one with a sequential value used for sorting, and then hide the sequential column. For example:
1 | A
2 | C
3 | B
And then hide the first column. Just sorting the database query doesn't necessarily help if the listbox sorts itself.
If you can tell the list to not sort then use the database query.
You can create a column in the database where you enter sort order numbers. 1,2,3,4,ect... Then you can order by that column in your query. Very easy to fix.

procedure to convert the dates in ms access(vb code requir

i have four forms namely file status , load file, reconciliation, and reports.
Reconciliation form has 2list boxes.. namely fiscal year and fiscal month. In that we have to choose for eg say i chose fiscal year 2012 and month as 1, then when i click open the reports form i have reports in there which displays information as per the year and the month.
what my requirement is in this report it displays fiscal year as i have chosen in the first step. But i do not want it because fiscal year 2012 and fiscal month 1 actually corresponds to actual year 2011 and month 10 i . e October. i want this to be displayed over there.
IF the corresponding Calendar Month/Year is always the same period behind, then a simple calculation could be done:
Format(DateAdd("M",-3,Format([FiscalPeriod]&"-01","ddddd")),"MMMM YYYY")
-OR-
Format(DateAdd("M",-3,Format([FiscalYear]&"-"&[FiscalMonth]&"-01","ddddd")),"MMMM YYYY")
If it's not, then You'll need a lookup table for each Fiscal Period and it's related calendar Month. Then have that value looked up on Your form using Dlookup() and have the report reference the lookup field instead of the List Boxes.
From the Access Help files:
DLookup(expr, domain [, criteria] )
Sample:
=DLookup("[ProductName]", "Products", "[ProductID] =" & Forms![Order Details]!ProductID)

Resources