Sunday, 29 September 2024
PAWS in Wikisource
Saturday, 24 August 2024
GLAM Wiki Training at Kondotty
It was a pleasure to conduct a workshop on the GLAM and Eduwiki programs at Imam Bukhari Institute in Kondotty, India. The event was organized by the Students’ Association of Bukhari Da’wa College.
Kondotty has a rich history in Mappila art and literature. Notably, Mahakavi Moyinkutty Vaidyar, born in 1852, was a renowned poet and Ayurvedic practitioner from this region. He composed the romantic epic “Badarul Munir – Husnul Jamal” at just 17 years old.
During the workshop, 40 students participated, with some already contributing to Wikimedia Commons and Wikisource by uploading traditional Mappila songs and literary works. They are excited to continue contributing to Wikimedia with more cultural and literary content.
hashtag#GLAM hashtag#Eduwiki hashtag#Edu
Activate to view larger image,
Sunday, 9 June 2024
PAWS and Commons
File Uploading to commons
Steps
Log in PAWS
Upload all files that are to be uploaded to commons in a folder.
For example : Here folder name is :Commons
I uploaded all pdf files there.
Then Create a python file : Example in the same folder.
I saved as upload_image.py (You can have your own names)
Step 2
Paste the following code
import os
import pywikibot
from pywikibot.specialbots import UploadRobot
# Define the site
site = pywikibot.Site('commons', 'commons')
# Directory containing the files to upload
directory = '/home/paws/Commons/'
# List of files to upload
files_to_upload = [
'1 (2).pdf',
'1 (5).pdf'
]
# Iterate over the files and upload each one
for i, filename in enumerate(files_to_upload):
file_path = os.path.join(directory, filename)
# Generate the target filename
target_filename = f'climate_worksheet_{i+1}.pdf'
# Description of the file
description = '''== {{int:filedesc}} ==
{{Information
|description={{en|1=CLimate worksheet done by Ali K3 is a remix of imageClimate change-environment.jpgby user:U3196787CC-BY-SA-4.0 CC0. Licensed CC BY SA 4.0.
}}
|source={{own}}
|author=[[User:Akbarali|Akbarali]]
|date=2024-06-09
|permission=
|other versions=
}}
== {{int:license-header}} ==
{{self|cc-by-sa-4.0}}
[[Category:Climate Educational worksheets]]
[[Category:Open Remix: Exploring Knowledge and Cultural Creativity]]
[[Category:Map worksheets]]
[[Category:Educational resources]]
[[Category:Humanities]]
'''
# Create an instance of the upload bot
bot = UploadRobot(url=[file_path],
description=description,
use_filename=target_filename,
keep_filename=True,
verify_description=False,
target_site=site)
# Run the upload bot
bot.run()
NB: Give proper file names
Saturday, 10 February 2024
Adding category using PAWD
First
let us collect the wikipedia articles that has no category of people who died in 2023 using sparql
Sample : Link
Second:
Extract the title using MS Excel
Third
Paste the article title in PAWS as given below
------------
import pywikibot
def add_category_to_article(page_title, category):
site = pywikibot.Site('ml', 'wikipedia') # Malayalam Wikipedia
page = pywikibot.Page(site, page_title)
# Check if the page exists
if not page.exists():
print(f"Page '{page_title}' does not exist.")
return
# Check if the page already has the category
if category in page.categories():
print(f"Page '{page_title}' already has the category '{category}'.")
return
# Add the category to the page
page.text += f"\n[[വർഗ്ഗം:{category}]]"
page.save(f"കാറ്റഗറി ചേർക്കുന്നു '{category}' ")
def main():
articles = [
"എസ്ഥേർ_ഈല്ലം",
"ദരൂഷ്_മെഹ്റൂജി"
]
category = "2023-ൽ മരിച്ചവർ"
for article in articles:
add_category_to_article(article, category)
if __name__ == "__main__":
main()
Fourth
Run the python file.
NB: Note, there should not be comma after the last title in python and recheck the category name properly.
It is based on wikidata statement: Date of death.
Saturday, 27 January 2024
PAWS Fetch the pages from search box
import requests
from bs4 import BeautifulSoup
search_url = "https://ml.wikipedia.org/w/index.php?title=പ്രത്യേകം:അന്വേഷണം&limit=500&offset=0&ns0=1&search=ഇസ്ലാം+ഇസ്ലാം&advancedSearch-current="
# Send a GET request to the search URL
response = requests.get(search_url)
# Check if the request was successful (status code 200)
if response.status_code == 200:
# Parse the HTML content of the page
soup = BeautifulSoup(response.text, 'html.parser')
# Find the elements that contain article titles
title_elements = soup.find_all('div', class_='mw-search-result-heading')
# Extract and print the article titles
for title_element in title_elements:
article_title = title_element.text.strip()
print(article_title)
else:
print(f"Failed to retrieve search results. Status code: {response.status_code}")
Paws : Fixing spelling mistake (replace)
import pywikibot
site = pywikibot.Site('ml', 'wikipedia') # Malayalam Wikipedia
site.login()
# Read page titles from replace.txt
with open('replace.txt', 'r', encoding='utf-8') as file:
page_titles = file.read().splitlines()
# Search and replace for each page title
search_term = 'അള്ളാഹു'
replace_term = 'അല്ലാഹു'
for title in page_titles:
page = pywikibot.Page(site, title)
page_text = page.text
# Check if the page text already contains the replacement term
if replace_term not in page_text:
updated_text = page_text.replace(search_term, replace_term)
# Edit the page with the updated text
page.text = updated_text
page.save(summary='Fixing misspelling')
else:
print(f'Skipping page {title} as it already contains the replacement term.')
Friday, 26 January 2024
Edit article using PAWS
Bot Editing in Wikipedia
1.
Use Paws
2.
Log in
3.
Need 2 files : 1. Terminal 2. Txt file ( For eg: Test.txt)
4.
Enter the codes in Test.txt file
( Example:
{{-start-}}
'''Article Title'
Introduction of article
==History==
Need to enter content
here
{{-stop-}}
5.
Come back to terminal and log in to your wiki
for example:
@PAWS:~$ pwb.py login -lang:ml
-family:wikipedia
6.
Then execute your test.txt file as given below
pwb.py pagefromfile
-file:/home/paws/test.txt -lang:ml -family:wikipedia -force
This is to add content in the existing
article.
import pywikibot
def add_category_to_article(page_title, category):
site = pywikibot.Site('ml', 'wikipedia') # Malayalam Wikipedia
page = pywikibot.Page(site, page_title)
# Check if the page exists
if not page.exists():
print(f"Page '{page_title}' does not exist.")
return
# Check if the page already has the category
if category in page.categories():
print(f"Page '{page_title}' already has the category '{category}'.")
return
# Add the category to the page
page.text += f"\n[[വർഗ്ഗം:{category}]]"
page.save(f"Adding category '{category}' to the page")
def main():
articles = [
"അഡിനോഫൈബ്രോമ",
"അഡിനോമയോസിസ്",
"ഒവേറിയൻ_ഫൈബ്രോമ",
"ഒവേറിയൻ_സിസ്റ്റാഡിനോമ",
"ഒവേറിയൻ_സീറസ്_സിസ്റ്റാഡിനോമ",
"ഓപ്സോമെനോറിയ",
"ഗർഭാശയ_പോളിപ്പ്",
"ജനനേന്ദ്രിയ_അരിമ്പാറ",
"ജയന്റ്_കോണ്ടൈലോമാ_അക്യൂമിനേറ്റം",
"ജേം_സെൽ_ട്യൂമർ",
"ജോൺ_സ്പിയേഴ്സ്",
"മയോമ",
"വജൈനൽ_യീസ്റ്റ്_ഇൻഫെക്ഷൻ"
]
category = "രോഗങ്ങൾ"
for article in articles:
add_category_to_article(article, category)
if __name__ == "__main__":
main()
Who is he ?
About me in media
Popular Posts
-
Traditional teaching engages some students but not all . Kagan is a revolutionary approach to teaching that actively engages e...
-
Subject coordinators have crucial role in academic development of every institution. Usually their post comes under Head of the Departme...
-
Exciting Experience at the World School Summit! I had an amazing time at the hashtag # World_School_Summit at Deira International Schoo...
-
As we celebrate the 53rd UAE National Day, I'm reminded of the country's remarkable spirit of inclusivity and tolerance. The UAE i...
-
Happy to share my experience attending the 3-day WikiLib Conference in Mexico City, Mexico! This enriching event brought together librarians...
-
Today I had 3 more new students in my class. Somebody had retest. Thats why they came to new class late.So again explained , What is schoo...
-
Tell us about your involvement in your home wiki or the broader Wikimedia movement. What have you built or contributed to in order to im...
-
World Environment Day (WED) is celebrated each year on June 5. Like Earth Day, it's a day to learn about the environment, partic...
-
Date & Time: Sunday, May 4, from 2:00 - 4:00 pm EEST Facilitators: debt & siebrand Venue: Palandoken Ballroom == Relevant links == P...
-
Trainer : Dr. Thomas Abraham Class Audio is available here Part- I Part -2 Celebration of Diversity TCI Workshop Foun...
Labels
- #distancelearning
- #InThisTogetherDubai
- 10M
- 10N
- 2017-18
- 2024
- 21st C teaching
- 9M
- 9P
- 9Q
- Academic Activities
- Acadmic thoughts
- Activities
- Activity Oriented Class
- AEP
- AI
- AI Education
- Applications
- April
- Article
- Assessment
- Awards
- Begaviour
- Beginning of Academic year
- Big ideas
- blooms
- Bots
- Bus stops
- California
- Career
- CBSE
- ChatGpt
- Child Centred
- class 10
- class 9
- Class Dojo
- Class note book
- Class Observation
- Class Party
- Classroom
- co-curricular activities
- codes
- college
- Comments
- Corona
- CPD
- Creative Works
- Demo
- Democracy
- Department activities
- differentiated learning
- Distance learning
- DM
- Dr Thomas Abraham
- Dubai
- duty
- editing
- Education World
- educational
- Educational Reform
- Educational technology
- EduConference
- EduWiki2023
- emails
- Environment
- expectation
- experiences
- feedback
- Felicitation
- First day
- football
- Free
- general instruction
- Geography
- GLAM
- Grade 10
- Grade 9
- Group Discussion
- habitat
- Hackathon
- History Class
- HOD Meeting
- html
- ICT in Education
- iis
- initiatives
- Instructions to teachers
- interactive notes
- Istanbul
- Items
- java
- Jigsaw
- Leadership
- Lecture notes
- Lesson Plan
- Library
- Making Thinking Visible
- malayalamwiki
- mcq
- Meetings
- Mexico
- Movement Strategy
- MSCS
- Nationalday
- Nature
- New ideas
- New methods of Teaching
- No Article in Ar/ml
- no descriptions
- No labels
- notes
- Oman
- online class
- Online Quiz
- Open Street Map
- OSM
- Outside
- Partcicipation
- Paws
- PDP
- Pedagogy
- Photos
- Planning
- Plenaries
- Politics
- PPT Files
- Practical Solutions
- Preparations
- Presentation
- proactive
- professional development
- Published
- Python
- pywiki
- queries
- questionpapers
- Questions
- quizizz.com
- Regents
- Report Cards
- resources
- Review
- revision
- samples
- Sanjeev Kumar
- Scheduled messages
- School Development
- School Election
- School Life
- Schools
- Science
- SDP
- seminar
- September
- SIBF
- Sirajnews Daily
- Social Science
- SODs
- sophox.org
- SPARQL
- speech
- Strategies
- Subject Coordinators
- summer vacation assignment
- Sunitha
- Tagishsimon
- taxonomy
- TCI
- teachers
- Teachers licence
- Teaching Training
- team building
- Texas
- Thought on School Future
- Thrissure
- time management
- Tips
- TLS
- tools
- Training
- UAE
- UAE National day
- uae schools
- UAEWiki
- unit plan
- upload
- Vacation
- Video Tutorials
- Websites
- WikiArabia
- wikicommons query
- Wikidata
- Wikidatacon
- WikiLib
- Wikimedia
- Wikipedia
- wikisource
- Wings Activity
- wokrloads
- worksheets
- Workshops
- world cup
- World Environment Day
- World School Summit
- Year Plan
- Zoom
Blog Archive
About
Featured Posts
Featured Posts
Featured Posts
Pages
recent posts
Flickr Images
Like us on Facebook
Blogroll
Advertise
Pages - Menu
Popular Posts
-
Traditional teaching engages some students but not all . Kagan is a revolutionary approach to teaching that actively engages e...
-
Subject coordinators have crucial role in academic development of every institution. Usually their post comes under Head of the Departme...
-
Exciting Experience at the World School Summit! I had an amazing time at the hashtag # World_School_Summit at Deira International Schoo...
-
As we celebrate the 53rd UAE National Day, I'm reminded of the country's remarkable spirit of inclusivity and tolerance. The UAE i...
-
Happy to share my experience attending the 3-day WikiLib Conference in Mexico City, Mexico! This enriching event brought together librarians...
-
Today I had 3 more new students in my class. Somebody had retest. Thats why they came to new class late.So again explained , What is schoo...
-
Tell us about your involvement in your home wiki or the broader Wikimedia movement. What have you built or contributed to in order to im...
-
World Environment Day (WED) is celebrated each year on June 5. Like Earth Day, it's a day to learn about the environment, partic...
-
Date & Time: Sunday, May 4, from 2:00 - 4:00 pm EEST Facilitators: debt & siebrand Venue: Palandoken Ballroom == Relevant links == P...
-
Trainer : Dr. Thomas Abraham Class Audio is available here Part- I Part -2 Celebration of Diversity TCI Workshop Foun...