Hi, Is there a way to get the first sentence of the first paragraph of the wiki page?
For example, http://en.wikipedia.org/wiki/Steve_Jobs I would need the below
Steven Paul "Steve" Jobs ( http://en.wikipedia.org/wiki/Help:IPA_for_English /ˈ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key dʒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key ɒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key b http://en.wikipedia.org/wiki/Help:IPA_for_English#Key z http://en.wikipedia.org/wiki/Help:IPA_for_English#Key http://en.wikipedia.org/wiki/Help:IPA_for_English /; February 24, 1955 – October 5, 2011)[3] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-3 [4] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-4 was an American entrepreneur http://en.wikipedia.org/wiki/Entrepreneur ,[5] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-5 marketer http://en.wikipedia.org/wiki/Marketing ,[6] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-6 and inventor,[7] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-Patents_registry_database_1-7 who was the cofounder, chairman, and CEO of Apple Inc. http://en.wikipedia.org/wiki/Apple_Inc. ’
Thanks
https://www.mediawiki.org/wiki/Extension:TextExtracts#API https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsent... perhaps
On 22 January 2015 at 21:12, practikalmind practikalmind@gmail.com wrote:
Hi,
*Is there a way to get the first sentence of the first paragraph of the wiki page?*
*For example,* *http://en.wikipedia.org/wiki/Steve_Jobs http://en.wikipedia.org/wiki/Steve_Jobs I would need the below*
*Steven Paul* "*Steve*" *Jobs* (/ http://en.wikipedia.org/wiki/Help:IPA_for_Englishˈ http://en.wikipedia.org/wiki/Help:IPA_for_English#Keydʒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Keyɒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Keyb http://en.wikipedia.org/wiki/Help:IPA_for_English#Keyz http://en.wikipedia.org/wiki/Help:IPA_for_English#Key/ http://en.wikipedia.org/wiki/Help:IPA_for_English; February 24, 1955 – October 5, 2011)[3] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-3[4] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-4 was an American entrepreneur http://en.wikipedia.org/wiki/Entrepreneur,[5] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-5 marketer http://en.wikipedia.org/wiki/Marketing,[6] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-6 and inventor,[7] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-Patents_registry_database_1-7 who was the cofounder, chairman, and CEO of Apple Inc. http://en.wikipedia.org/wiki/Apple_Inc.’
Thanks
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
thanks
From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Alex Monk Sent: Thursday, January 22, 2015 1:20 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Description (1st sentence of wiki page)
https://www.mediawiki.org/wiki/Extension:TextExtracts#API
https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&titles=Steve_Jobs &prop=extracts&exsentences=1&titles=Steve_Jobs perhaps
On 22 January 2015 at 21:12, practikalmind <practikalmind@gmail.com mailto:practikalmind@gmail.com > wrote:
Hi, Is there a way to get the first sentence of the first paragraph of the wiki page?
For example, http://en.wikipedia.org/wiki/Steve_Jobs I would need the below
Steven Paul "Steve" Jobs ( http://en.wikipedia.org/wiki/Help:IPA_for_English /ˈ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key dʒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key ɒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key b http://en.wikipedia.org/wiki/Help:IPA_for_English#Key z http://en.wikipedia.org/wiki/Help:IPA_for_English#Key http://en.wikipedia.org/wiki/Help:IPA_for_English /; February 24, 1955 – October 5, 2011)[3] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-3 [4] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-4 was an American entrepreneur http://en.wikipedia.org/wiki/Entrepreneur ,[5] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-5 marketer http://en.wikipedia.org/wiki/Marketing ,[6] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-6 and inventor,[7] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-Patents_registry_database_1-7 who was the cofounder, chairman, and CEO of Apple Inc. http://en.wikipedia.org/wiki/Apple_Inc. ’
Thanks
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org mailto:Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Hi,
I wanted to combine the sentence extraction https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&titles=Steve_Jobs &prop=extracts&exsentences=1&titles=Steve_Jobs along with pageimages
https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&titles=Steve%20Jobs&prop=pageimages&pithumbsize=300 &titles=Steve%20Jobs&prop=pageimages&pithumbsize=300
so that I get the description and image in one go. Is there a way to accomplish this?
thanks
From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Alex Monk Sent: Thursday, January 22, 2015 1:20 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Description (1st sentence of wiki page)
https://www.mediawiki.org/wiki/Extension:TextExtracts#API
https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&titles=Steve_Jobs &prop=extracts&exsentences=1&titles=Steve_Jobs perhaps
On 22 January 2015 at 21:12, practikalmind <practikalmind@gmail.com mailto:practikalmind@gmail.com > wrote:
Hi, Is there a way to get the first sentence of the first paragraph of the wiki page?
For example, http://en.wikipedia.org/wiki/Steve_Jobs I would need the below
Steven Paul "Steve" Jobs ( http://en.wikipedia.org/wiki/Help:IPA_for_English /ˈ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key dʒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key ɒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key b http://en.wikipedia.org/wiki/Help:IPA_for_English#Key z http://en.wikipedia.org/wiki/Help:IPA_for_English#Key http://en.wikipedia.org/wiki/Help:IPA_for_English /; February 24, 1955 – October 5, 2011)[3] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-3 [4] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-4 was an American entrepreneur http://en.wikipedia.org/wiki/Entrepreneur ,[5] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-5 marketer http://en.wikipedia.org/wiki/Marketing ,[6] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-6 and inventor,[7] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-Patents_registry_database_1-7 who was the cofounder, chairman, and CEO of Apple Inc. http://en.wikipedia.org/wiki/Apple_Inc. ’
Thanks
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org mailto:Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Yep: https://en.wikipedia.org/w/api.php?action=query&prop=extracts%7Cpageimag...
On 22 January 2015 at 22:13, practikalmind practikalmind@gmail.com wrote:
Hi,
I wanted to combine the sentence extraction https://en.wikipedia.org/w/api.php?action=query&prop=*extracts* &exsentences=1&titles=Steve_Jobs https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&titles=Steve_Jobs along with pageimages
https://en.wikipedia.org/w/api.php?action=query&titles=Steve%20Jobs&... *pageimages*&pithumbsize=300 https://en.wikipedia.org/w/api.php?action=query&titles=Steve%20Jobs&prop=pageimages&pithumbsize=300
so that I get the description and image in one go. Is there a way to accomplish this?
thanks
*From:* mediawiki-api-bounces@lists.wikimedia.org [mailto: mediawiki-api-bounces@lists.wikimedia.org] *On Behalf Of *Alex Monk *Sent:* Thursday, January 22, 2015 1:20 PM *To:* MediaWiki API announcements & discussion *Subject:* Re: [Mediawiki-api] Description (1st sentence of wiki page)
https://www.mediawiki.org/wiki/Extension:TextExtracts#API
https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsent... perhaps
On 22 January 2015 at 21:12, practikalmind practikalmind@gmail.com wrote:
Hi,
*Is there a way to get the first sentence of the first paragraph of the wiki page?*
*For example,* *http://en.wikipedia.org/wiki/Steve_Jobs http://en.wikipedia.org/wiki/Steve_Jobs I would need the below*
*Steven Paul* "*Steve*" *Jobs* (/ http://en.wikipedia.org/wiki/Help:IPA_for_Englishˈ http://en.wikipedia.org/wiki/Help:IPA_for_English#Keydʒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Keyɒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Keyb http://en.wikipedia.org/wiki/Help:IPA_for_English#Keyz http://en.wikipedia.org/wiki/Help:IPA_for_English#Key/ http://en.wikipedia.org/wiki/Help:IPA_for_English; February 24, 1955 – October 5, 2011)[3] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-3[4] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-4 was an American entrepreneur http://en.wikipedia.org/wiki/Entrepreneur,[5] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-5 marketer http://en.wikipedia.org/wiki/Marketing,[6] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-6 and inventor,[7] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-Patents_registry_database_1-7 who was the cofounder, chairman, and CEO of Apple Inc. http://en.wikipedia.org/wiki/Apple_Inc.’
Thanks
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Thanks, that worked.
From: mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org] On Behalf Of Alex Monk Sent: Thursday, January 22, 2015 2:17 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Description (1st sentence of wiki page)
Yep: https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&prop=extracts|pageimages&pithumbsize=300&exsentences=1&titles=Steve_Jobs &prop=extracts|pageimages&pithumbsize=300&exsentences=1&titles=Steve_Jobs
On 22 January 2015 at 22:13, practikalmind <practikalmind@gmail.com mailto:practikalmind@gmail.com > wrote:
Hi,
I wanted to combine the sentence extraction https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&titles=Steve_Jobs &prop=extracts&exsentences=1&titles=Steve_Jobs along with pageimages
https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&titles=Steve%20Jobs&prop=pageimages&pithumbsize=300 &titles=Steve%20Jobs&prop=pageimages&pithumbsize=300
so that I get the description and image in one go. Is there a way to accomplish this?
thanks
From: mediawiki-api-bounces@lists.wikimedia.org mailto:mediawiki-api-bounces@lists.wikimedia.org [mailto:mediawiki-api-bounces@lists.wikimedia.org mailto:mediawiki-api-bounces@lists.wikimedia.org ] On Behalf Of Alex Monk Sent: Thursday, January 22, 2015 1:20 PM To: MediaWiki API announcements & discussion Subject: Re: [Mediawiki-api] Description (1st sentence of wiki page)
https://www.mediawiki.org/wiki/Extension:TextExtracts#API
https://en.wikipedia.org/w/api.php?action=query https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=1&titles=Steve_Jobs &prop=extracts&exsentences=1&titles=Steve_Jobs perhaps
On 22 January 2015 at 21:12, practikalmind <practikalmind@gmail.com mailto:practikalmind@gmail.com > wrote:
Hi, Is there a way to get the first sentence of the first paragraph of the wiki page?
For example, http://en.wikipedia.org/wiki/Steve_Jobs I would need the below
Steven Paul "Steve" Jobs ( http://en.wikipedia.org/wiki/Help:IPA_for_English /ˈ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key dʒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key ɒ http://en.wikipedia.org/wiki/Help:IPA_for_English#Key b http://en.wikipedia.org/wiki/Help:IPA_for_English#Key z http://en.wikipedia.org/wiki/Help:IPA_for_English#Key http://en.wikipedia.org/wiki/Help:IPA_for_English /; February 24, 1955 – October 5, 2011)[3] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-3 [4] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-4 was an American entrepreneur http://en.wikipedia.org/wiki/Entrepreneur ,[5] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-5 marketer http://en.wikipedia.org/wiki/Marketing ,[6] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-6 and inventor,[7] http://en.wikipedia.org/wiki/Steve_Jobs#cite_note-Patents_registry_database_1-7 who was the cofounder, chairman, and CEO of Apple Inc. http://en.wikipedia.org/wiki/Apple_Inc. ’
Thanks
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org mailto:Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org mailto:Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org