Page MenuHomePhabricator

Thembo42 (jonathan)
User

Projects

User is not a member of any projects.

Today

  • No visible events.

Tomorrow

  • No visible events.

Friday

  • No visible events.

User Details

User Since
Mar 4 2024, 9:03 PM (127 w, 1 d)
Availability
Available
LDAP User
Thembo42
MediaWiki User
Thembo42 [ Global Accounts ]

Recent Activity

Mar 7 2024

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

Hi Everyone. Please I am stuck at the FORK instruction of "Get the URL of another public PAWS notebook" and "Add ?format=raw" to download a raw .ipynb file. Where am I to get another public PAWS notebook? Do I just get any random PAWS notebook? Also, when I tried using the PAWS notebook example that was given in the instruction, I wasn't getting the option to download the raw file. Please help

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

Hi @Pablo @Isaac @CMyrick-WMF
I hope you're all doing well. I've been working on the microtask T358095 and I'm now at the stage where I need to submit my work for review. Could you please let me know where I can submit my work for review?

Just to provide some context, here's an overview of the work I've done:

  1. Extracted page view counts for Wikipedia articles.
  2. Explored and visualized the evolution of individual articles and a sample of Climate change articles by visualizing feature values and quality scores over time.
  3. Analyzed the distribution of quality scores by year using boxplots.

I'm looking forward to receiving feedback on my work.

Thank you!
Mahima Agarwal

Mar 7 2024, 12:14 PM · Outreachy (Round 28)
Thembo42 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

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

Mar 6 2024

Thembo42 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

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

Need help resolving error with fetching pageviews data from Wikimedia API
python 3
Hello everyone,
@Isaac @Pablo
I'm currently working on the microtask where I need to fetch pageviews data for Wikipedia articles using the Wikimedia API. However, I'm encountering an error that I'm having trouble resolving. I would greatly appreciate any insights or assistance in troubleshooting this issue.

Mar 6 2024, 4:23 AM · Outreachy (Round 28)