Page MenuHomePhabricator

Aminehassou
User

Projects

User does not belong to any projects.

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Sunday

  • Clear sailing ahead.

User Details

User Since
Mar 30 2021, 7:53 PM (5 w, 2 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Amine hassou [ Global Accounts ]

Recent Activity

Sat, Apr 24

Aminehassou added a comment to T279290: Synchronising Wikidata and Wikipedias using pywikibot - Task 6.

I sent my task 6 code by email.

Sat, Apr 24, 2:56 PM · Outreachy (Round 22)

Fri, Apr 23

Aminehassou added a comment to T279290: Synchronising Wikidata and Wikipedias using pywikibot - Task 6.

What if certain articles don't have the id written anywhere? Do I skip those ones? Or are the articles in the categories hand-picked in a way where every article has to have the id?

Fri, Apr 23, 7:51 PM · Outreachy (Round 22)
Aminehassou added a comment to T279290: Synchronising Wikidata and Wikipedias using pywikibot - Task 6.

Just for clarification, are we meant to hardcode the ids in? I don't see a way to get the ids through code unless that specific category has an API tied to it.

Fri, Apr 23, 1:16 AM · Outreachy (Round 22)
Aminehassou added a comment to T279290: Synchronising Wikidata and Wikipedias using pywikibot - Task 6.

Hello, I would like to pick the Disney+ series ID not in Wikidata‎ category

Fri, Apr 23, 1:00 AM · Outreachy (Round 22)
Aminehassou added a comment to T279289: Synchronising Wikidata and Wikipedias using pywikibot - Task 5.

I have submitted my task 5 code through email.

Fri, Apr 23, 12:47 AM · Outreachy (Round 22)

Mon, Apr 19

Aminehassou added a comment to T279288: Synchronising Wikidata and Wikipedias using pywikibot - Task 4.

Hello, I sent my task 4 code through email.

Mon, Apr 19, 8:30 AM · Outreachy (Round 22)

Wed, Apr 14

Aminehassou added a comment to T278997: Synchronising Wikidata and Wikipedias using pywikibot - Task 3.

I submitted my task 3 code through email, looking forward to the feedback!

Wed, Apr 14, 5:24 PM · Outreachy (Round 22)

Tue, Apr 13

Aminehassou added a comment to T278997: Synchronising Wikidata and Wikipedias using pywikibot - Task 3.

Since we are parsing through the article text on wikipedia, are we also meant to get the property id as shown in the example?

"P31 = radio telescope"

If so, how is this possible without accessing wikidata?

Hello @Aminehassou ! What I think that we have to do is that, we search for 'specific information' (especially those that we searched for in Task 1) in the Wikipedia article. And since we know what kind of information we searched for, we can assign the corresponding property ID which is appropriate for it.

Hey, thanks for the response, so in other words, we hardcode the value in since we have already found it during task 1?

No problem. And yes, that's pretty much what we have to do.

Not quite. You hard-code 'P31' ('instance of'), since that is what you are looking for. But then you extract 'radio telescope' directly from the article (e.g., by retrieving the "Lovell Telescope" article and finding "is a [[radio telescope]]" in the first sentence). So you hard-code the question ('what is this an instance of?'), find the answer from the article by python, and then get your code to print it out in terms of Wikidata value 'P31 = value".

Tue, Apr 13, 10:34 AM · Outreachy (Round 22)
Aminehassou added a comment to T278997: Synchronising Wikidata and Wikipedias using pywikibot - Task 3.

Since we are parsing through the article text on wikipedia, are we also meant to get the property id as shown in the example?

"P31 = radio telescope"

If so, how is this possible without accessing wikidata?

Hello @Aminehassou ! What I think that we have to do is that, we search for 'specific information' (especially those that we searched for in Task 1) in the Wikipedia article. And since we know what kind of information we searched for, we can assign the corresponding property ID which is appropriate for it.

Tue, Apr 13, 5:07 AM · Outreachy (Round 22)
Aminehassou added a comment to T278997: Synchronising Wikidata and Wikipedias using pywikibot - Task 3.

Since we are parsing through the article text on wikipedia, are we also meant to get the property id as shown in the example?

Tue, Apr 13, 4:55 AM · Outreachy (Round 22)

Sun, Apr 11

Aminehassou added a comment to T278863: Synchronising Wikidata and Wikipedias using pywikibot - Task 2.

Can anyone point me to where I can find documentation for the reload function in line 15 of example.py? It seems to be causing the above error when I execute my code. My terminal defaults to UTF-8, so I could for the sake of the project just comment out the code I'm sure just to take a look at things. However, I've been through documentation for the imported modules and can't find anything, nor could I find the code defined in the script itself. Thanks

Sun, Apr 11, 8:48 PM · Outreachy (Round 22)

Apr 5 2021

Aminehassou added a comment to T278863: Synchronising Wikidata and Wikipedias using pywikibot - Task 2.

Hello, I submitted my task 2 code by email.
Thanks,

Apr 5 2021, 3:38 AM · Outreachy (Round 22)

Apr 2 2021

Aminehassou added a comment to T279162: Trouble using Python 3.8.3 pip on Windows 10.

No problem. :)

Apr 2 2021, 6:24 PM
Aminehassou added a comment to T279162: Trouble using Python 3.8.3 pip on Windows 10.

Make sure you're running the command line as administrator. If you are and it's still giving you an error, it might be an issue with your PATH variables. Try doing a fresh install of Python 3 through the official website https://www.python.org/downloads/
then trying again from scratch.

Apr 2 2021, 6:11 PM
Aminehassou added a comment to T279162: Trouble using Python 3.8.3 pip on Windows 10.

What error did you get when running

pip install -U --force requests
Apr 2 2021, 5:58 PM
Aminehassou added a comment to T279162: Trouble using Python 3.8.3 pip on Windows 10.

If the other fixes don't work, try this fix as well:

Apr 2 2021, 5:39 PM
Aminehassou added a comment to T279162: Trouble using Python 3.8.3 pip on Windows 10.

https://stackoverflow.com/questions/37220055/pip-fatal-error-in-launcher-unable-to-create-process-using
This seems to be the same error you are having, try the suggested fixes given by the answers.

Apr 2 2021, 5:34 PM
Aminehassou added a comment to T279162: Trouble using Python 3.8.3 pip on Windows 10.

Can you post a screenshot of the full error when running

pip install "requests>=2.20.1"
Apr 2 2021, 5:25 PM
Aminehassou added a comment to T278863: Synchronising Wikidata and Wikipedias using pywikibot - Task 2.

Ok, thanks for the clarification!

Apr 2 2021, 4:04 PM · Outreachy (Round 22)

Apr 1 2021

Aminehassou added a comment to T278863: Synchronising Wikidata and Wikipedias using pywikibot - Task 2.

Load a Wikidata item (use 'Q4115189' to start with - it is the sandbox), and print out information from it. You could also try loading some of the other items you looked at in the first task.

Apr 1 2021, 8:44 PM · Outreachy (Round 22)
Aminehassou added a comment to T278863: Synchronising Wikidata and Wikipedias using pywikibot - Task 2.

It's generally better to write code that is stand-alone and others can run, so in this case it's worth including '('en', 'wikidata')' in the main script, even if it's not strictly needed for you to run it. You shouldn't normally share your user config file.

Apr 1 2021, 7:00 PM · Outreachy (Round 22)
Aminehassou added a comment to T278863: Synchronising Wikidata and Wikipedias using pywikibot - Task 2.

When submitting my code, should I also send my user_config.py file privately? Since I picked Wikidata as my default family of sites. When I write my script, I don't have to write:

Apr 1 2021, 6:33 PM · Outreachy (Round 22)

Mar 31 2021

Aminehassou added a comment to T278860: Synchronising Wikidata and Wikipedias using pywikibot - Task 1.

Here is my Wikidata Page

Mar 31 2021, 12:03 AM · Outreachy (Round 22)