Hi!
Is there a bot that can help me to import CSV file and turn it into templated pages?
For example: I have csv with Universities:
University Name,Alias,Number of students massachusetts institute of technology,MIT,2100430 oxford university,oxford,492304 ...
I want to create pages for each of the university with the text:
{{University |alias=oxford |number of students=492304934 }} ----- Yury Katkov, WikiVote
I think this is a special need, for which you could rewrite pagefromfile.py.
2013/6/2 Yury Katkov katkov.juriy@gmail.com
Hi!
Is there a bot that can help me to import CSV file and turn it into templated pages?
For example: I have csv with Universities:
University Name,Alias,Number of students massachusetts institute of technology,MIT,2100430 oxford university,oxford,492304 ...
I want to create pages for each of the university with the text:
{{University |alias=oxford |number of students=492304934 }}
Yury Katkov, WikiVote
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Cool! Thanks for the pointer. I think that I can form the file using Open Refine. ----- Yury Katkov, WikiVote
On Sun, Jun 2, 2013 at 2:02 PM, Bináris wikiposta@gmail.com wrote:
I think this is a special need, for which you could rewrite pagefromfile.py.
2013/6/2 Yury Katkov katkov.juriy@gmail.com
Hi!
Is there a bot that can help me to import CSV file and turn it into templated pages?
For example: I have csv with Universities:
University Name,Alias,Number of students massachusetts institute of technology,MIT,2100430 oxford university,oxford,492304 ...
I want to create pages for each of the university with the text:
{{University |alias=oxford |number of students=492304934 }}
Yury Katkov, WikiVote
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- Bináris _______________________________________________ Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
On Sun, Jun 2, 2013 at 6:03 AM, Yury Katkov katkov.juriy@gmail.com wrote:
Cool! Thanks for the pointer. I think that I can form the file using Open Refine.
Yes, OpenRefine's templating exporter can do this transformation trivially. Just create a new project using the CSV and select Export. The templating exporter's default JSON structure isn't that different from what you want, so just tweaking it a little will get you there.
Tom
Opening the CSV file and using this as an array to generate templates is easy in Python, it does not need a special bot. Getting consensus to add templates to everything and ensuring that the matching articles or images are the right ones to change is the hard part.
On en.wp in particular, mass changing articles by bot to add information templates could be a long discussion.
Fae
On 2 June 2013 07:46, Yury Katkov katkov.juriy@gmail.com wrote:
Hi!
Is there a bot that can help me to import CSV file and turn it into templated pages?
For example: I have csv with Universities:
University Name,Alias,Number of students massachusetts institute of technology,MIT,2100430 oxford university,oxford,492304 ...
I want to create pages for each of the university with the text:
{{University |alias=oxford |number of students=492304934 }}
Yury Katkov, WikiVote
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Good to know, fortunately I'm working for 3rd party wiki. ----- Yury Katkov, WikiVote
On Sun, Jun 2, 2013 at 2:03 PM, Fae faewik@gmail.com wrote:
Opening the CSV file and using this as an array to generate templates is easy in Python, it does not need a special bot. Getting consensus to add templates to everything and ensuring that the matching articles or images are the right ones to change is the hard part.
On en.wp in particular, mass changing articles by bot to add information templates could be a long discussion.
Fae
On 2 June 2013 07:46, Yury Katkov katkov.juriy@gmail.com wrote:
Hi!
Is there a bot that can help me to import CSV file and turn it into templated pages?
For example: I have csv with Universities:
University Name,Alias,Number of students massachusetts institute of technology,MIT,2100430 oxford university,oxford,492304 ...
I want to create pages for each of the university with the text:
{{University |alias=oxford |number of students=492304934 }}
Yury Katkov, WikiVote
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
-- faewik@gmail.com http://j.mp/faewm Guide to email tags: http://j.mp/mfae Personal and confidential. Unless otherwise stated, do not copy, quote or forward this email for any reason without permission.
Pywikipedia-l mailing list Pywikipedia-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
Hi Yury,
Op 2-6-2013 12:15, Yury Katkov schreef:
Good to know, fortunately I'm working for 3rd party wiki.
For Wiki Loves Monuments a lot of people are using http://area23.brightbyte.de/csv2template.php . If you happen to make something in python, please publish it, we still have many countries (like the UK) where we still need to make lists.
Maarten
pywikipedia-l@lists.wikimedia.org