In T318512#8337016, @Daniel_Ngene wrote:Hello @Slst2020. I got a couple of questions as regards task 2
- Am I allowed to upload an image of my plot to this platform for opinion?
- Will I have to visualize all 2000+ tools data dictionary returned by my task 2 function?
- Feed Queries
- All Stories
- Search
- Feed Search
- Transactions
- Transaction Logs
Feed Search
Oct 22 2022
Oct 22 2022
Oct 17 2022
Oct 17 2022
In T318512#8320189, @tobianointing wrote:@Amisha27, @Durotimi-Hector.
Alternatively, you can use the endpoint:
https://toolhub.wikimedia.org/api/search/tools/?q=name:pywikibot. This will return only the results that have the query parameter value (pywikibot) in the name field. I found that the backend was using elasticsearch, which makes this possible.Next, select the top item from the list of results, that is, data["results"][0].
This will always be the tool that matches the query parameter value.Please I will really appreciate your feedbacks on this approach
Oct 16 2022
Oct 16 2022
In T318512#8319283, @Durotimi-Hector wrote:In T318512#8319264, @Amisha27 wrote:Hi @Slst2020 and everyone,
In task 3, we have to use TOOLS_API_ENDPOINT = "https://toolhub.wikimedia.org/api/search/tools" can you please clarify which parameter we can use to retrieve the data of a single tool. I have tried using "name_term" parameter but it is returning empty results array and also used "q" parameter but it is returning many tools that almost matching with the tool name pattern.
For eg:
using API_ENDPOINT/?q=toolforge-graphql it is returning 1573 tools.Please clarify if there is a way to retrieve a single tool or if can i move ahead with "q" parameter.
while working with the said API, i observed that most of the query parameters will return more than one reult. This because its a "SEARCH" feauture and will not bring only the exact tool you need but any other tool that contains the same set of strings.
if you search for piwikibot for example, you'd get other tools that have piwikibot in their name string, or depending on whatever param you're are using to query the db.what i did was to loop the result of the search and find the tool that == the tool need
i hope this helps
Hi @Slst2020 and everyone,
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. · Wikimedia Foundation · Privacy Policy · Code of Conduct · Terms of Use · Disclaimer · CC-BY-SA · GPL · Credits