"미디어위키 API 최근바뀜 조회"의 두 판 사이의 차이

잔글 (봇: 자동으로 텍스트 교체 (-</source> +</syntaxhighlight>, -<source +<syntaxhighlight ))
 
4번째 줄: 4번째 줄:


{{소스헤더|최근 2건 조회}}
{{소스헤더|최근 2건 조회}}
<source lang='console'>
<syntaxhighlight lang='console'>
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rclimit=2' | jq
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rclimit=2' | jq
{
{
30번째 줄: 30번째 줄:
   }
   }
}
}
</source>
</syntaxhighlight>
{{소스헤더|로그인 사용자만 조회}}
{{소스헤더|로그인 사용자만 조회}}
<source lang='console'>
<syntaxhighlight lang='console'>
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rcshow=!anon&rclimit=2' | jq '.query.recentchanges[]'
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rcshow=!anon&rclimit=2' | jq '.query.recentchanges[]'
{
{
46번째 줄: 46번째 줄:
   "user": "Futuresay22"
   "user": "Futuresay22"
}
}
</source>
</syntaxhighlight>
{{소스헤더|IP 사용자만 조회}}
{{소스헤더|IP 사용자만 조회}}
<source lang='console'>
<syntaxhighlight lang='console'>
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rcshow=anon&rclimit=2' | jq '.query.recentchanges[]'
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rcshow=anon&rclimit=2' | jq '.query.recentchanges[]'
{
{
64번째 줄: 64번째 줄:
   "anon": ""
   "anon": ""
}
}
</source>
</syntaxhighlight>


==같이 보기==
==같이 보기==

2020년 11월 2일 (월) 02:59 기준 최신판

1 개요[ | ]

미디어위키 API RecentChanges
미디어위키 API 최근바뀜 조회
최근 2건 조회
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rclimit=2' | jq
{
  "batchcomplete": "",
  "continue": {
    "rccontinue": "20190929090908|1191858411",
    "continue": "-||"
  },
  "query": {
    "recentchanges": [
      {
        "type": "edit",
        "ns": 0,
        "title": "Brandon Ashley",
        "user": "122.105.82.48",
        "anon": ""
      },
      {
        "type": "edit",
        "ns": 0,
        "title": "Talking to a Stranger",
        "user": "Monkbot"
      }
    ]
  }
}
로그인 사용자만 조회
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rcshow=!anon&rclimit=2' | jq '.query.recentchanges[]'
{
  "type": "edit",
  "ns": 0,
  "title": "Derek Pang",
  "user": "Monkbot"
}
{
  "type": "categorize",
  "ns": 14,
  "title": "Category:Redirects from moves",
  "user": "Futuresay22"
}
IP 사용자만 조회
testuser@localhost:~$ curl -s 'https://en.wikipedia.org/w/api.php?action=query&format=json&list=recentchanges&rcprop=title|user&rcshow=anon&rclimit=2' | jq '.query.recentchanges[]'
{
  "type": "edit",
  "ns": 0,
  "title": "Emil Forsberg",
  "user": "193.14.195.249",
  "anon": ""
}
{
  "type": "edit",
  "ns": 0,
  "title": "Etawah Safari Park",
  "user": "2409:4063:4E86:1BF2:BF33:9AA5:A047:F755",
  "anon": ""
}

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}