After hitting the Qiita API with Python to get a list of articles for beginners, we will visit the god articles

Introduction

Qiita's "Beginner" tag and "New programmer support" tag articles for beginners As a new QA engineer, all of them are very helpful to me. Unfortunately, the individual tag page only lists trends and new articles, The specifications make it difficult to find good articles from the past. In this article, we will first use the Qiita API to write articles for beginners (articles tagged as: = "Beginner" OR "Support for new programmers"). After creating a program that outputs everything, the result of reading each article in the output list in descending order of likes I will introduce the god articles that I felt "This is ridiculously helpful!"

Thing you want to do

  1. Get all articles for beginners and output to CSV
  2. Read the CSV with spreadsheet software and sort the list in descending order of "most likes"
  3. Worship in order from the top

Make a program

Consider how to "take all articles for beginners and output to CSV"

I simply thought about it like this.

  1. Get all articles with "Beginner" tag OR "New programmer support" tag with API
  2. Extract only the data you need
  3. Export the data to CSV

Read the API specifications and consider how to get the data and the required data

If you read Official documentation of Qiita API, you can see the following.

Implement a little

** I have put the code implemented based on the above examination, its explanation, and sample output file on GitHub. **

For implementation, I referred to the following article. Thank you! Get a list of articles I posted on Qiita

To worship

You can operate the list with Python, but it is troublesome, so this time I will read the CSV with spreadsheet software and edit it. Add a header column appropriately and sort in descending order in order of likes, and you're done. After that, I will go around the URL from the top. In my case, the articles I read and liked were "liked" + colored on the table.

As of November 20, 2019, the total number of articles acquired was 8642! I couldn't read the whole thing, so This time, I read 75 articles that had more than 1000 likes as of November 20, 2019.

Carefully selected !! Super God article list

The list below has read 75 god articles and 22 super god articles that impressed me especially! (Although there are a few, we have carefully selected such things as removing duplicated content) It is roughly categorized by content.

How to recommend work

How to write a document

programming

Computer Science * ~ Eventually here ~ *

Book / Article Summary

Information gathering / dissemination

Impressions after reading

I read the so-called "buzzed" articles in order from the top,

At the same time, I'm not satisfied just by reading the article, but I think I should actually take action. It's going to be a long way, but I can't help hurrying, so I'll keep going ...!

Recommended Posts

After hitting the Qiita API with Python to get a list of articles for beginners, we will visit the god articles
Get a list of articles posted by users with Python 3 Qiita API v2
I tried to get the authentication code of Qiita API with Python.
Get the number of articles accessed and likes with Qiita API + Python
[First API] Try to get Qiita articles with Python
Python script to get a list of input examples for the AtCoder contest
How to get a list of files in the same directory with python
[Introduction to Python] How to get the index of data with a for statement
Get the number of PVs of Qiita articles you posted with API
[Introduction to Python] How to sort the contents of a list efficiently with list sort
I tried to get the movie information of TMDb API with Python
Created a Python wrapper for the Qiita API
Python: Get a list of methods for an object
Get the value of a specific key in a list from the dictionary type in the list with Python
How to identify the element with the smallest number of characters in a Python list?
[For beginners] Web scraping with Python "Access the URL in the page to get the contents"
Try to get the function list of Python> os package
A note about hitting the Facebook API with the Python SDK
Get the number of specific elements in a python list
Get a list of purchased DMM eBooks with Python + Selenium
How to get the last (last) value in a list in Python
How to get a list of built-in exceptions in python
Get stock articles of infrastructure engineer yuta with Qiita API
Get the source of the page to load infinitely with python.
Get the value of a specific key up to the specified index in the dictionary list in Python
Python> List> partitions = [0] * len (all_filepaths) / partitions [: test_set_size] = [1] * After creating a list with test_set_size> 0, set the front part to 1.
Get a list of CloudWatch Metrics and a correspondence table for Unit units with Python boto
How to output the number of VIEWs, likes, and stocks of articles posted on Qiita to CSV (created with "Python + Qiita API v2")
Try to get a list of breaking news threads in Python.
I tried to create a list of prime numbers with python
The story of making a standard driver for db with python.
Python techniques for those who want to get rid of beginners
How to send a request to the DMM (FANZA) API with python
Python beginners hit the unofficial API of Google Play Music to play music
Get a list of files in a folder with python without a path
[Python] A program that rotates the contents of the list to the left
PhytoMine-I tried to get the genetic information of plants with Python
[For beginners] I want to get the index of an element that satisfies a certain conditional expression
Beginners will make a Bitcoin automatic trading bot aiming for a lot of money! Part 2 [Transaction with API]
A story that visualizes the present of Qiita with Qiita API + Elasticsearch + Kibana
I tried to refer to the fun rock-paper-scissors poi for beginners with Python
[Introduction to Udemy Python3 + Application] 47. Process the dictionary with a for statement
Get the number of searches with a regular expression. SeleniumBasic VBA Python
Get a list of packages installed in your current environment with python
Python> sys.path> List of strings indicating the path to search for modules
[Linux] Command to get a list of commands executed in the past
Hit a method of a class instance with the Python Bottle Web API
Receive a list of the results of parallel processing in Python with starmap
I measured the speed of list comprehension, for and while with python2.7.
[python] Get a list of instance variables
[Python] Get a list of folders only
How to pass the execution result of a shell command in a list in Python
[Python] Automatically totals the total number of articles posted by Qiita using the API
Use twitter API to get the number of tweets related to a certain keyword
Note: How to get the last day of the month with python (added the first day of the month)
Get the stock price of a Japanese company with Python and make a graph
The fastest way for beginners to master Python
[Python] Get the files in a folder with Python
Python for super beginners Python for super beginners # Easy to get angry
Get a ticket for a theme park with python
Get the caller of a function in Python