Page MenuHomePhabricator

Udonels (Udochi)
User

Projects

User is not a member of any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Sunday

  • No visible events.

User Details

User Since
Mar 6 2024, 3:43 PM (123 w, 1 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Udonels [ Global Accounts ]

Recent Activity

Apr 12 2025

Udonels added a comment to T386128: Outreachy 30: Addressing the new Lusophone technological wishlist proposals.

Hello @Snowy04, you should construct the timeline independently, we want to know how you work and how do you organize your available time.

Apr 12 2025, 3:48 PM · Outreach-Programs-Projects, Outreachy (Round 30)
Udonels updated subscribers of T386128: Outreachy 30: Addressing the new Lusophone technological wishlist proposals.
Apr 12 2025, 3:46 PM · Outreach-Programs-Projects, Outreachy (Round 30)

Oct 21 2024

Udonels added a comment to T376127: QuickStatements 3.0 public documentation - Task.

I'm kinda lost, please what's the next contribution?

Oct 21 2024, 10:51 AM · Outreachy (Round 29)

Oct 17 2024

Udonels added a comment to T376127: QuickStatements 3.0 public documentation - Task.

Hello everyone, I am asking regarding the task. For the env file, When we generate a key and add it, it is pushed to github when we do so, Isn't the key supposed to only be used locally because GitGuardian does not recommend submitting such keys for security purposes. I thought env files remain local.

Oct 17 2024, 10:00 PM · Outreachy (Round 29)

Oct 15 2024

Udonels added a comment to T376127: QuickStatements 3.0 public documentation - Task.

@Okay-michael Yes i agree. Well it seem im not doing something right with the css modification. Ive noted there is pico.jade.min.css file as well as a base.css, darkmode.css If i understand correctly these are the files that i should be making adjustments for the button right? @ACorrea-WMB

Oct 15 2024, 12:48 PM · Outreachy (Round 29)

Oct 14 2024

Udonels added a comment to T376127: QuickStatements 3.0 public documentation - Task.

@Okay-michael Thank you for that! Now when i run the createsuper user command the terminal asks for email and password. Not sure what to do from there

Oct 14 2024, 10:57 PM · Outreachy (Round 29)

Oct 11 2024

Udonels added a comment to T376127: QuickStatements 3.0 public documentation - Task.

Hello mentors @MGalves_WMB @Ederporto @ACorrea-WMB I would like to clarify whether we are required to create pull requests for our contributions, or if we simply record our contributions as they are.
Thank you for your guidance

Oct 11 2024, 12:33 PM · Outreachy (Round 29)

Oct 2 2024

Udonels updated subscribers of T376127: QuickStatements 3.0 public documentation - Task.
Oct 2 2024, 8:06 PM · Outreachy (Round 29)
Udonels updated subscribers of T376127: QuickStatements 3.0 public documentation - Task.
Oct 2 2024, 7:00 PM · Outreachy (Round 29)
Udonels added a comment to T376127: QuickStatements 3.0 public documentation - Task.

Hi, Mentors (@Ederporto, @ACorrea-WMB, @MGalves_WMB) I am an Outreachy applicant and I would love to participate in this project given my background in data analytics, a ton of CSVs, and backend development. I look forward to learning and contributing.

Oct 2 2024, 6:19 PM · Outreachy (Round 29)

Mar 23 2024

Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

@Ederporto, When can we expect to receive feedback on the public-paws-notebook submission?

You all should receive the feedback via email in less than 2 hours (at 21 UTC). Sorry for the delay, we had too many applicants to review the code and could not finish yesterday.

Mar 23 2024, 8:13 PM · Outreach-Programs-Projects, Outreachy (Round 28)

Mar 22 2024

Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

@Aixvik, @Aananditaa001, @Anju_Maurya, @ElvisGicharu, @Abishekdascs, @Damiodunuga, @Abishek_Das, @Keamybams, @MahimaSinghal, @Andreas_Sune, @Udonels, @Omolade1414, @Chimezee, @BruceMahagwa, @GonzaGertrude, @Anachimuco, @DevJames1 and @Sheilakaruku

I have been abscent from answering questions here and through email, because I'm mostly interested in learning how you code and how you approach development challenges (they will appear in this and other projects in your journey).

But some of the questions and challenges I saw might need clarification, other have been resolved by kind and thoughtful individuals in this thread. Let's tackle the exercise here, and take in mind that you all will receive personal feedback in your submissions next week.

About the task instructions

  1. You should create an Wikimedia account, if you don't already have one. You can do so at https://meta.wikimedia.org/w/index.php?title=Special:CreateAccount;
  2. Log in into the PAWS service with your wikimedia account: https://paws.wmflabs.org/paws/hub;

These two seems to not be a challenge.

  1. Fork this notebook in your repository in PAWS (see the instructions here). Name your file as "T357409 - YourWikiUsername";
  2. Follow the specific directions in the notebook. If you have questions or need assistance, comment your inquiry in this subtask and make sure to ping @Ederporto;

You are not required to code in PAWs, feel free to do this locally, in your Jupyter Notebook instance, for example.
If the Data visualization doesn't work properly in your PAWs instance, but works locally, that's fine for me.
The Completing the gaps section needs to work in PAWs.

  1. Once you feel you have completed your task, generate the public link of your notebook on PAWS (see the instructions here) and send it through email to @Ederporto (you can find his email in Outreachy);

If you are developing locally, you can upload it to PAWs and then generate the public link and send me.

  1. You can request feedback on your task until March 17, and we will answer to you until March 22, in order to give you ample time to work on the feedback and your final submission;

That will happen next week, as announced

  1. Make sure to register the public link as a contribution on the Outreachy website. Your final contribution has to be submitted before April 2, at 4pm UTC.

You all have to make at least a draft proposal in the Outreachy platform by March 17th, as we will close new applications in the 18th, you can update it later, but your draft needs to be up by then.

About the notebook instructions:

  • Your first function is supposed to return a list of the most viewed articles in ptwiki for January;
    • You can check if your function is returning the articles in the correct order by looking at this page.
  • Your second function is supposed to return a dataframe of the most viewed articles in ptwiki for January and February;
  • You are free to use auxiliar functions and libraries as you wish;
  • Your third function, in the Data visualization section, is supposed to get the dataframe you generated in the second function and make a bar chart visualization of it.
    • You can pivot the table.

I hope this helps everyone!

@Ederporto
I have some doubts about the list returned for January 2024 most viewed articles on this website PageViews you shared. When I toggle off the "Show only mainspace pages" option I get the exact result with my solution, where the top 2 seem to be the wiki main page and special: search. Does my solution need to match the result on the website when "Show only mainspace pages" is toggled on or off?

According to wiki definition of mainspace:

mainspace (countable and uncountable, plural mainspaces)
(Internet) The primary namespace of a wiki, excluding secondary content such as discussion pages.

Most articles consist of paragraphs and images (perhaps with other types of audiovisual media). However, articles may also be formatted as stand-alone lists or tables (not to be confused with disambiguation pages, which are purely navigation aids). These lists or tables are also considered articles for Wikipedia's purposes and are included in the Main/Article namespace, the one without a title prefix followed by a colon (:).

Mar 22 2024, 5:25 AM · Outreach-Programs-Projects, Outreachy (Round 28)

Mar 20 2024

Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Hi, are we allowed to manipulate the data for part 2? If I wanted to display page_lengths with granularity monthly, can I group page_lengths as an average for a given month? For example, a bar chart for page_lengths for 2021 with granularity monthly. X axis would be months and Y axis would be average page lengths for a given month.

Mar 20 2024, 1:26 PM · Outreachy (Round 28)

Mar 17 2024

Udonels added a comment to T356498: Outreachy Project: Build a data visualization tool for the evolution of Wikipedia articles maintained by WikiProjects.

Good morning everyone, please I want to know if there's another way to download the data set am still finding it difficult to do for TODO Task And after that what other task are we expected to do?

Mar 17 2024, 2:33 PM · Outreachy (Round 28), Outreach-Programs-Projects

Mar 16 2024

Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello @Ederporto ,
I am confused about the proposal as I don't know what to do.

Mar 16 2024, 9:53 PM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Do we necessarily need to include the revision timestamps or pageview counts in our visualization?
It's not specified but we accessed the data for the pageview counts and this made me think over it

Mar 16 2024, 5:12 PM · Outreachy (Round 28)
Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Message from the project mentors regarding pageviews

We've seen some questions regarding the pageviews component and wanted to share a few general tips:

  • The data is only available starting from July 2015.
  • If you want to use the data to understand how quality trends relate to article popularity, you can always just use a sample, such as pageviews from February 2024 only.
  • If you're getting missing counts, it can be useful to look at the detailed result from the API to understand why (e.g., https://wikimedia.org/api/rest_v1/metrics/pageviews/per-article/en.wikipedia/...) or read the documentation.
Mar 16 2024, 11:38 AM · Outreachy (Round 28)

Mar 15 2024

Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

@MahimaSinghal Can you please help me with how page views API is being used for this task?

Hi @Mitumoni_kalita ,Yeah Sure. I am more than willing to help.
PageViews API will be used in the very first TODO of this microtask. Where you have to use the API to gather pageviews count in the time period each revision was made.
You can refer to the documentation of the API here : mwviews documentation: https://github.com/mediawiki-utilities/python-mwviews.

image.png (1,434×396 px, 134 KB)

The above image is of the sample example given in the Notebook on how can we use the API.

The function "article_views" under PageviewsClient class already have used the pageviews count API and did all the implementation right to show pageview count of any article in the time period each revision was made ; so I didn't understand what actually we need to do under this TODO of the Microtask ? @MahimaSinghal

That is just an example, we have to do it for a sample of articles other than the two given, and we have to calculate the pageview count for every revision_timestamp.

Then what is the use of article_views function? It does the same thing right , that we are asked to do!

Mar 15 2024, 1:51 PM · Outreachy (Round 28)
Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

@MahimaSinghal Can you please help me with how page views API is being used for this task?

Hi @Mitumoni_kalita ,Yeah Sure. I am more than willing to help.
PageViews API will be used in the very first TODO of this microtask. Where you have to use the API to gather pageviews count in the time period each revision was made.
You can refer to the documentation of the API here : mwviews documentation: https://github.com/mediawiki-utilities/python-mwviews.

image.png (1,434×396 px, 134 KB)

The above image is of the sample example given in the Notebook on how can we use the API.

The function "article_views" under PageviewsClient class already have used the pageviews count API and did all the implementation right to show pageview count of any article in the time period each revision was made ; so I didn't understand what actually we need to do under this TODO of the Microtask ? @MahimaSinghal

Hi @Mitumoni_kalita. We need to use the function article_views to find out how many page_views were there in between subsequent revisions. One way to do this is to make a function that takes as an arguments the page_title and returns a new dataframe with the page_views included for that particular page_title. Hope this helps.

Mar 15 2024, 1:45 PM · Outreachy (Round 28)

Mar 14 2024

Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Are you including all the 7519 columns in your video 😅?

Screenshot 2024-03-14 222908.png (1,776×435 px, 40 KB)

This is the dataframe structure that I have generated of the cumulative sum which is sent to the bar_chart_race function, please confirm me if this is the correct structure that i have generated. let me know if I have made any error

Thank you so much to all, It worked.

How should I proceed?

Hmm, if you're including 7519 columns, it will take time. For now, just add 5 rows and 5 columns, or 10 rows by 10 columns. I think I read in the bar chart documentation that the more rows and columns you have, the longer it takes to render.Since, it generates frame by frame something like that. Also, only play the video after your cell is done running.

Great 🥳

What should I do next? record this as a contribution or send PAWS link to @Ederporto

check this message https://phabricator.wikimedia.org/T358412#9628885 by @Ederporto

Mar 14 2024, 8:49 PM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Screenshot 2024-03-14 160452.png (819×398 px, 23 KB)

While implementing the same code in PAWS, I encountered this warning.

Mar 14 2024, 12:09 PM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Message from the project mentors about the final application

Some comments on the final application, especially with respect to the project timeline question:

  • The most important aspect of the application is the notebook from the application task. We wont be able to give feedback on the other aspects of the final application.
  • Regarding the project timeline question:
    • Try to give a rough sketch of the different steps you plan to take in order to complete the project. T356498 mentions 4 phases: becoming familiar with the dataset, selection of specific Wikiprojects of interest, analysis and visualization, and building an interactive web interface.
    • The aim is to organize what things you think should be done and in which order. This is flexible and will likely change as you embark on the project.
    • Feel free to identify which aspects are most interesting to you and would like to spend more time on; as well as any additional steps you might think are pertinent for your work on this project.
Mar 14 2024, 5:47 AM · Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

@Aixvik, @Aananditaa001, @Anju_Maurya, @ElvisGicharu, @Abishekdascs, @Damiodunuga, @Abishek_Das, @Keamybams, @MahimaSinghal, @Andreas_Sune, @Udonels, @Omolade1414, @Chimezee, @BruceMahagwa, @GonzaGertrude, @Anachimuco, @DevJames1 and @Sheilakaruku

I have been abscent from answering questions here and through email, because I'm mostly interested in learning how you code and how you approach development challenges (they will appear in this and other projects in your journey).

But some of the questions and challenges I saw might need clarification, other have been resolved by kind and thoughtful individuals in this thread. Let's tackle the exercise here, and take in mind that you all will receive personal feedback in your submissions next week.

About the task instructions

  1. You should create an Wikimedia account, if you don't already have one. You can do so at https://meta.wikimedia.org/w/index.php?title=Special:CreateAccount;
  2. Log in into the PAWS service with your wikimedia account: https://paws.wmflabs.org/paws/hub;

These two seems to not be a challenge.

  1. Fork this notebook in your repository in PAWS (see the instructions here). Name your file as "T357409 - YourWikiUsername";
  2. Follow the specific directions in the notebook. If you have questions or need assistance, comment your inquiry in this subtask and make sure to ping @Ederporto;

You are not required to code in PAWs, feel free to do this locally, in your Jupyter Notebook instance, for example.
If the Data visualization doesn't work properly in your PAWs instance, but works locally, that's fine for me.
The Completing the gaps section needs to work in PAWs.

  1. Once you feel you have completed your task, generate the public link of your notebook on PAWS (see the instructions here) and send it through email to @Ederporto (you can find his email in Outreachy);

If you are developing locally, you can upload it to PAWs and then generate the public link and send me.

  1. You can request feedback on your task until March 17, and we will answer to you until March 22, in order to give you ample time to work on the feedback and your final submission;

That will happen next week, as announced

  1. Make sure to register the public link as a contribution on the Outreachy website. Your final contribution has to be submitted before April 2, at 4pm UTC.

You all have to make at least a draft proposal in the Outreachy platform by March 17th, as we will close new applications in the 18th, you can update it later, but your draft needs to be up by then.

About the notebook instructions:

  • Your first function is supposed to return a list of the most viewed articles in ptwiki for January;
    • You can check if your function is returning the articles in the correct order by looking at this page.
  • Your second function is supposed to return a dataframe of the most viewed articles in ptwiki for January and February;
  • You are free to use auxiliar functions and libraries as you wish;
  • Your third function, in the Data visualization section, is supposed to get the dataframe you generated in the second function and make a bar chart visualization of it.
    • You can pivot the table.

I hope this helps everyone!

Mar 14 2024, 5:25 AM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello, @Ederporto

I have a question about visualisation step. On the notebook task we have to do our graphics with the previous result dataframe (top_view_dataframe). According to bar_chart_race documentation, the dataframe to use should have a date on row and different categories of articles on columns but top_view_dataframe is the opposite. My question is can we use different approach instead of top_view_dataframe, for exemple prepare our dataset with the build in method in bar_chart_race release for that goal?

Thank you

Yes, same issue. I find it hard to visualize it with the current state of our data frame. In the documentation, it's specified that every row must represent a single period, which is the exact opposite in ours.

@Ederporto would drop more insights.

I think to address the requirement of using the bar_chart_race library, we can reshape the DataFrame so that dates are on the rows and articles are on the columns. This way, it aligns with the expected format for the library.

@Andreas_Sune, @Udonels, @MahimaSinghal
You can pivot the dataframe inside your function, without any prejudice, as @MahimaSinghal suggested.

Mar 14 2024, 5:06 AM · Outreach-Programs-Projects, Outreachy (Round 28)

Mar 8 2024

Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello everyone, thanks to @Abishek_Das for the tips on installing ffmpeg. It's a timesaver I must say.

Mar 8 2024, 10:34 AM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello everyone, I am also an Outreachy applicant for 2024.

Today, I discovered the message on Phabricator; however, I initially assumed that all discussions were taking place in the Zulip channel. Consequently, I didn't check the Phabricator comments section.

To keep it concise, I'd like to address how to make FFmpeg work on the PAWS Jupyter Notebook for the task "Create a tool for informative infographics from structured information from Wikimedia projects - Task A."

The reason FFmpeg isn't functioning on the PAWS Jupyter Notebook is that we need to download and add FFmpeg Static Builds from (https://johnvansickle.com/ffmpeg/) to the same folder where we have the code.

Here's a step-by-step guide (So, you don't have to go through the trouble of downloading from https://johnvansickle.com/ffmpeg/):

Note: Before you do the step mentioned in point (a), make sure all the steps, i.e., b, c, d, and e, are done first.

a) I've attached code that you can add to your Jupyter Notebook cell (Same notebook where you have your code to generate the bar chart race). Run this code to resolve the FFmpeg issue.

# Download a static FFmpeg build and add it to PATH.
%run 'util/load-ffmpeg.ipynb'
print('Done!')

b) Prior to running the code mentioned in point (a), add/upload the "util" folder to your PAWS. I've included the folder below.


(You, have to unzip it after downloading)

c) The purpose of the "util" folder is to automatically add the FFmpeg Static Build File (which is a folder) to your PAWS when you run the provided code mentioned in point (a).

d) Ensure that the filename in bcr.bar_chart_race() has a ".mp4" extension.

e) After completing these steps, you can run your respective code, which is the code for generating the bar chart race.

Note:

a) You might encounter a warning / Error (Which again doesn't appear when I run my code locally and only sometimes appears on my PAWS Jupyter Notebook), as shown in the attached screenshot. However, this is not an issue, as the video file will be generated in the PAWS folder after running your code. You can then download the bar chart race video and watch the video(as shown the screenshot below).

Code for ffmpeg.png (992×239 px, 48 KB)

mp 4.png (418×32 px, 2 KB)

b) If your code works correctly locally, it should generally (90%-99% of the time) work on the PAWS online Jupyter Notebook.

c) The warning or error screenshot I provided may or may not appear (Which happens to me only on PAWS), so be mindful of that.

d) Ensure that the filename in bcr.bar_chart_race() has a ".mp4" extension, as the ".html" filename won't appear on PAWS. But, Again, the .html works locally.

e) Why the .html doesn't appear on PAWS, I have no idea about it, and I have still not looked for a solution related to .html since the .mp4 file is generated on PAWS without any issue.

f) All the things I have mentioned on how to solve the issue related to FFmpeg were taken from various documentation like Matplotlib 3.8.3 documentation and, of course, my favorite stack overflow (So, thanks to the Devs on Stack Overflow).

Mar 8 2024, 9:56 AM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello, @Ederporto

I have a question about visualisation step. On the notebook task we have to do our graphics with the previous result dataframe (top_view_dataframe). According to bar_chart_race documentation, the dataframe to use should have a date on row and different categories of articles on columns but top_view_dataframe is the opposite. My question is can we use different approach instead of top_view_dataframe, for exemple prepare our dataset with the build in method in bar_chart_race release for that goal?

Thank you

Yes, same issue. I find it hard to visualize it with the current state of our data frame. In the documentation, it's specified that every row must represent a single period, which is the exact opposite in ours.

@Ederporto would drop more insights.

I think to address the requirement of using the bar_chart_race library, we can reshape the DataFrame so that dates are on the rows and articles are on the columns. This way, it aligns with the expected format for the library.

Hello, @Ederporto

I have a question about visualisation step. On the notebook task we have to do our graphics with the previous result dataframe (top_view_dataframe). According to bar_chart_race documentation, the dataframe to use should have a date on row and different categories of articles on columns but top_view_dataframe is the opposite. My question is can we use different approach instead of top_view_dataframe, for exemple prepare our dataset with the build in method in bar_chart_race release for that goal?

Thank you

Yes, same issue. I find it hard to visualize it with the current state of our data frame. In the documentation, it's specified that every row must represent a single period, which is the exact opposite in ours.

@Ederporto would drop more insights.

Hello @Ederporto ,
I have tried using the "bar_chart_race" library but it's to no avail. I have tried the examples in the documentation using its in-built dataset, and it says ffmpeg is required to be installed. Is there a way around this on the PAWS system notebook?

Please if any other intern has gone past this, do aid me. I've spent hours debugging without results.

You'll need to install ffmpeg on your machine. I've already done that, but unfortunately, I'm still unable to visualize the bar chart. I tested it on my machine using vscode, and initially encountered an error. However, after installing ffmpeg, I managed to generate the video successfully. I suspect the issue might be with the jupyter environment. If anyone has successfully addressed the problem, could you please help us?

If you have successfully installed ffmpeg on your system, It should work also with your Jupyter notebook. I did It and i’ve successfully generated the video.
I think the issue come from the dataset.

Mar 8 2024, 12:12 AM · Outreach-Programs-Projects, Outreachy (Round 28)

Mar 7 2024

Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello, @Ederporto

I have a question about visualisation step. On the notebook task we have to do our graphics with the previous result dataframe (top_view_dataframe). According to bar_chart_race documentation, the dataframe to use should have a date on row and different categories of articles on columns but top_view_dataframe is the opposite. My question is can we use different approach instead of top_view_dataframe, for exemple prepare our dataset with the build in method in bar_chart_race release for that goal?

Thank you

Yes, same issue. I find it hard to visualize it with the current state of our data frame. In the documentation, it's specified that every row must represent a single period, which is the exact opposite in ours.

@Ederporto would drop more insights.

I think to address the requirement of using the bar_chart_race library, we can reshape the DataFrame so that dates are on the rows and articles are on the columns. This way, it aligns with the expected format for the library.

Mar 7 2024, 7:03 PM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello, @Ederporto

I have a question about visualisation step. On the notebook task we have to do our graphics with the previous result dataframe (top_view_dataframe). According to bar_chart_race documentation, the dataframe to use should have a date on row and different categories of articles on columns but top_view_dataframe is the opposite. My question is can we use different approach instead of top_view_dataframe, for exemple prepare our dataset with the build in method in bar_chart_race release for that goal?

Thank you

Yes, same issue. I find it hard to visualize it with the current state of our data frame. In the documentation, it's specified that every row must represent a single period, which is the exact opposite in ours.

@Ederporto would drop more insights.

I think to address the requirement of using the bar_chart_race library, we can reshape the DataFrame so that dates are on the rows and articles are on the columns. This way, it aligns with the expected format for the library.

Mar 7 2024, 6:52 PM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hello, @Ederporto

I have a question about visualisation step. On the notebook task we have to do our graphics with the previous result dataframe (top_view_dataframe). According to bar_chart_race documentation, the dataframe to use should have a date on row and different categories of articles on columns but top_view_dataframe is the opposite. My question is can we use different approach instead of top_view_dataframe, for exemple prepare our dataset with the build in method in bar_chart_race release for that goal?

Thank you

Mar 7 2024, 2:58 PM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hi @Ederporto,

I'm facing some trouble gathering data from the Wikimedia API. Every time I make a request in the Jupyter notebook, I'm getting a response status code of 403, indicating forbidden access. Is there a workaround for this? It's worth noting that I can gather data normally from the Wikimedia API website and even when running the link outside of the notebook.

Could you please take a look at the error and see if there's a solution? Thank you

Screenshot 2024-03-05 at 22.19.26.png (2,738×850 px, 251 KB)

I am having the same issue with this endpoint: https://wikimedia.org/api/rest_v1/metrics/pageviews/top/{project}/{access}/{year}/{month}/{day}
it returns 403. But after getting the text property of the response these were the indicatives.

  1. Our servers are currently under maintenance or experiencing a technical problem.
  2. Error: 403, Scripted requests from your IP have been blocked, please see https://meta.wikimedia.org/wiki/User-Agent_policy.

Assistance is needed to continue with the tasks
OS: Windows
python module: requests

Eror_Making_get_requests.jpg (1,017×481 px, 117 KB)

@Anachimuco I read on the page view API page that

headers = {
      "User-Agent": user_agent
    }

is required, check if you added this and replace it with an actual user agent.
I was able to get the data after adding it to my code.
I assume you are using Python

Thanks, James. This was helpful. I'm now currently on the second task. I'm thinking that we'd have to call 60 requests to perform it actually, since there's no endpoint to aid.

Think also if more than one API endpoint in the Pageview section can be used together to achieve this I am trying to achieve it that way @GonzaGertrude gave the clue

Mar 7 2024, 11:08 AM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358412: Create tool for informative infographics from structured information from Wikimedia projects - Task A.

Hi @Ederporto,

I'm facing some trouble gathering data from the Wikimedia API. Every time I make a request in the Jupyter notebook, I'm getting a response status code of 403, indicating forbidden access. Is there a workaround for this? It's worth noting that I can gather data normally from the Wikimedia API website and even when running the link outside of the notebook.

Could you please take a look at the error and see if there's a solution? Thank you

Screenshot 2024-03-05 at 22.19.26.png (2,738×850 px, 251 KB)

I am having the same issue with this endpoint: https://wikimedia.org/api/rest_v1/metrics/pageviews/top/{project}/{access}/{year}/{month}/{day}
it returns 403. But after getting the text property of the response these were the indicatives.

  1. Our servers are currently under maintenance or experiencing a technical problem.
  2. Error: 403, Scripted requests from your IP have been blocked, please see https://meta.wikimedia.org/wiki/User-Agent_policy.

Assistance is needed to continue with the tasks
OS: Windows
python module: requests

Eror_Making_get_requests.jpg (1,017×481 px, 117 KB)

@Anachimuco I read on the page view API page that

headers = {
      "User-Agent": user_agent
    }

is required, check if you added this and replace it with an actual user agent.
I was able to get the data after adding it to my code.
I assume you are using Python

Mar 7 2024, 10:14 AM · Outreach-Programs-Projects, Outreachy (Round 28)
Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Hello everyone, I followed the instruction and tried to forked the notebook. I can download the raw ..ipynb file, which is the .txt file. After uploading it to the PAWS, It is a .txt file, see below. How can I change it into an editable notebook with python? like the format we can see in the original .ipynb notebook.

image.png (1,866×792 px, 166 KB)

Thank you very much.
Sha Zhao

strange, me I downloaded a .ipynb buts thats okay.
are you able to right click on the file and rename it with extension .ipynb

Mar 7 2024, 7:40 AM · Outreachy (Round 28)
Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Hello Mentors @Pablo @Isaac @CMyrick-WMF
I'm encountering an error with the code below when changing the granularity from "daily" to "hourly".

p.article_views('en.wikipedia', ['Albedo', 'Agriculture'], granularity='hourly', start='20220101', end='20220103')

Error :- 'The pageview API returned nothing useful.

I will highly appreciate your assistance in this.

Hi Shreyash,

This is the source code from `python-mwviews/src/mwviews/api
/pageviews.py`. I believe they don't have any available data within your selected timeframe. That's why you get the error message. You can try another timeframe. Hope this helps your question.

try:
           results = self.get_concurrent(urls)
           some_data_returned = False
           for result in results:
               if 'items' in result:
                   some_data_returned = True
               else:
                   continue
               for item in result['items']:
                   output[parse_date(item['timestamp'])][item['project']] = item['views']

           if not some_data_returned:
               raise Exception(
                   'The pageview API returned nothing useful at: {}'.format(urls)
               )
           return output

Yes , I understood it . Thank you

are you able to get passsed the error? @ASHreyash7

Hi @Thembo42
The error occurs when certain timeframes lacks pageview count, Hence the API might raise an Exception in such case.
You need to handle such cases to get passed this error.
Hope this helps.

By handle, do you mean to choose a timeframe where all rows have a view count?

It should work if it has at least one data/row in your timeframe.

Mar 7 2024, 6:52 AM · Outreachy (Round 28)

Mar 6 2024

Udonels added a comment to T358095: Outreachy Application Task: Tutorial for Wikipedia language-agnostic article quality modeling data.

Hello Mentors @Pablo @Isaac @CMyrick-WMF
I'm encountering an error with the code below when changing the granularity from "daily" to "hourly".

p.article_views('en.wikipedia', ['Albedo', 'Agriculture'], granularity='hourly', start='20220101', end='20220103')

Error :- 'The pageview API returned nothing useful.

I will highly appreciate your assistance in this.

Hi Shreyash,

This is the source code from `python-mwviews/src/mwviews/api
/pageviews.py`. I believe they don't have any available data within your selected timeframe. That's why you get the error message. You can try another timeframe. Hope this helps your question.

try:
           results = self.get_concurrent(urls)
           some_data_returned = False
           for result in results:
               if 'items' in result:
                   some_data_returned = True
               else:
                   continue
               for item in result['items']:
                   output[parse_date(item['timestamp'])][item['project']] = item['views']

           if not some_data_returned:
               raise Exception(
                   'The pageview API returned nothing useful at: {}'.format(urls)
               )
           return output

Yes , I understood it . Thank you

are you able to get passsed the error? @ASHreyash7

Hi @Thembo42
The error occurs when certain timeframes lacks pageview count, Hence the API might raise an Exception in such case.
You need to handle such cases to get passed this error.
Hope this helps.

Mar 6 2024, 9:53 PM · Outreachy (Round 28)