{"id":545,"date":"2022-03-24T12:20:51","date_gmt":"2022-03-24T03:20:51","guid":{"rendered":"https:\/\/blog.mydepot.kr\/?p=545"},"modified":"2022-03-24T12:39:46","modified_gmt":"2022-03-24T03:39:46","slug":"python-twint-%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%b4%ec%84%9c-%ed%8a%b8%ec%9c%84%ed%84%b0-%ec%8a%a4%ed%81%ac%eb%9e%98%ed%95%91%ea%b8%81%ec%96%b4%ec%98%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/blog.mydepot.kr\/?p=545","title":{"rendered":"[Python] TWINT \ub97c \uc774\uc6a9\ud574\uc11c \ud2b8\uc704\ud130 \uc2a4\ud06c\ub798\ud551(\uae01\uc5b4\uc624\uae30)"},"content":{"rendered":"\n<p>\ud2b8\uc704\ud130 API\ub97c \uc774\uc6a9\ud574\uc11c \uc774\uac83\uc800\uac83 \ub9cc\ub4e4\uc5b4 \ubcf4\ub824\uace0 \uac1c\ubc1c\uc790 \ub4f1\ub85d\uc744 \uc2e0\uccad\ud558\ub824\uace0 \ud558\ub294\ub370 \ub2e4\ub978 \uacf3\uacfc\ub294 \ub2e4\ub974\uac8c \uac1c\ubc1c\uc790\ub4e4\uc774 \uc2eb\uc740\ub4ef\ud55c \ub208\uce58\uc778 \ud2b8\uc704\ud130.<\/p>\n\n\n\n<p>\uc2e0\uccad \uae00\ub3c4 \ubb54\uac00 \ub9ce\uc774 \uc4f0\ub77c\uace0 \ud558\uace0 \uae38\uac8c \uc4f0\ub77c\uace0 \ud558\uace0 \ub2e4 \uc37c\ub354\ub2c8 \uba54\uc77c\uc744 \ubcf4\ub0b4\uc640\uc11c \ubcf4\uac15\ub0b4\uc6a9 \ubcf4\ub0b4\ub77c\uace0 \ud558\uace0 \ubcf4\ub0c8\ub354\ub2c8 \ub354 \ubcf4\uac15\ud574\uc11c \ubcf4\ub0b4\ub77c\uace0 \ud558\uace0..<\/p>\n\n\n\n<p>\uc0c1\uc0ac\ud55c\ud14c \ubb54\uac00 \uccb4\ud06c\ubc1b\ub294 \uae30\ubd84\uc774 \ub4e4\uc5b4\uc11c \uadf8\ub0e5 \uc548\ud558\uace0 \uc544\uc774\ud504\ub808\uc784\uc73c\ub85c \uc704\uc82f\uc774\ub098 \uc0ac\uc6a9\ud558\ub824\uace0 \uc77c\ub2e8 \uc801\uc6a9\ud574 \ub1a8\ub294\ub370 \uc6ec\uc9c0 \uc880 \ubaa8\uc790\ub77c \ubcf4\uc778\ub2e4.<\/p>\n\n\n\n<p>\uadf8\ub798\uc11c \ub2e4\uc2dc \uac80\uc0c9\ud558\ub2e4 \ubcf4\ub2c8 \uc2a4\ud06c\ub798\ud551 \ud234\uc774 \uc788\uae34 \ud55c\ub370 \uc694\uac74 \ub610 \ud30c\uc774\uc36c\uc73c\ub85c \ub9cc\ub4e0 \uac83\uc774\ub77c..<\/p>\n\n\n\n<p>\ud30c\uc774\uc36c\uc744 \ub9cc\uc9c8\uc77c\uc774 \uc5c6\uc5b4 \uc774\uac83\uc800\uac83 \uac80\uc0c9\ud558\ub2e4\uac00 \uc791\ub3d9 \uc644\ub8cc \ud655\uc778 \ud558\uace0 \uadf8 \uacfc\uc815\uc744 \ud639\uc2dc \ub098\uc911\uc5d0 \ubcfc\uae4c \uc2f6\uc5b4 \uae30\ub85d\ud574 \ub193\ub294\ub2e4.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uc2dc\ub180\ub85c\uc9c0\uc5d0 \ud30c\uc774\uc36c + PIP \uc124\uce58<\/h2>\n\n\n\n<p>\uc77c\ub2e8 \uc6b4\uc601\uc911\uc778 NAS\uc5d0\uc11c \uc0ac\uc6a9\ud560\uac70\ub77c \uc2dc\ub180\ub85c\uc9c0\uac00 \uc5c6\uac70\ub098 \ud558\uba74 \uac74\ub108\ub744\uba74 \ub41c\ub2e4.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\ud328\ud0a4\uc9c0\uc13c\ud130\uc5d0\uc11c python \ucd5c\uc2e0\uc73c\ub85c \ud558\ub098 \uc124\uce58<\/li><li>SSH \uc811\uc18d &#8211; \ud130\ubbf8\ub110 ON<\/li><li>sudo su<\/li><li>python3 -m ensurepip (pip \uc124\uce58)<\/li><li>python3 -m pip install &#8211;upgrade pip (pip \uc5c5\ub370\uc774\ud2b8)<\/li><li>python3 -m pip -V (pip \ubc84\uc804 \ud655\uc778)<\/li><li>python3 -m pip install \ud328\ud0a4\uc9c0\uba85 (pip \ud328\ud0a4\uc9c0 \uc124\uce58) <strong>&lt;- \uc77c\ubc18\uc801\uc778 \uc0c1\ud669. twint\uc5d0\ub294 \uc0ac\uc6a9 NO<\/strong><\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">TWINT \uc124\uce58<\/h2>\n\n\n\n<p>\uc6ec\uc9c0 \uae30\ubcf8 \uc124\uce58 \uba85\ub839\uc5b4\ub85c \uc124\uce58\ud558\uba74 \uc5d0\ub7ec\uac00 \ub098\uc11c \ud574\ub2f9 \uae43\ud5d9\uc5d0 \uac00\uc11c \uac80\uc0c9\ud574\ubcf4\ub2c8 \uac19\uc740 \uc5d0\ub7ec\ub97c \ub9de\uc774\ud55c \uc0ac\ub78c\uc774 \uc5c4\uccad \ub9ce\ub354\ub77c.<\/p>\n\n\n\n<p>\uadf8 \uc0ac\ub78c\ub4e4\uc774 \uc81c\uc2dc\ud55c \ud301\ub300\ub85c \ud558\ub2c8 \uc815\uc0c1\uc791\ub3d9 \ud558\ub2c8 \uadf8\uac78\ub85c \uc124\uba85\uc744 \ub300\uccb4\ud55c\ub2e4.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>SSH \uc811\uc18d &#8211; \ud130\ubbf8\ub110 ON<\/li><li>pip install &#8211;user &#8211;upgrade git+https:\/\/github.com\/twintproject\/twint.git@origin\/master#egg=twint<\/li><li>python3 -m site &#8211;user-base \ub85c \uacbd\ub85c \ud655\uc778<\/li><li>3\ubc88\uc5d0\uc11c \ud655\uc778\ud55c \uacbd\ub85c \uc548\uc5d0 twint \uc124\uce58 \ud655\uc778<\/li><li>\uc124\uce58 \uc644\ub8cc<\/li><\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">TWINT \uc0d8\ud50c py \uc2a4\ud06c\ub9bd\ud2b8 \ucf54\ub4dc<\/h2>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nimport twint\n\nc = twint.Config()\nc.Username = &quot;\uae01\uc5b4\uc62c \ud2b8\uc704\ud130 \uc720\uc800 ID&quot;\nc.Search = &quot;from:\uc720\uc800 ID -filter:replies&quot; # \nc.Limit = 10\nc.Store_json = True\nc.Output = &quot;json\ud30c\uc77c\uacbd\ub85c&quot;\nc.Hide_output = True\n\ntwint.run.Search(c)\n<\/pre><\/div>\n\n\n<p>\uae30\ud0c0 \uc124\uc815\uc740 <a rel=\"noreferrer noopener\" href=\"https:\/\/github.com\/twintproject\/twint\/wiki\" target=\"_blank\">https:\/\/github.com\/twintproject\/twint\/wiki<\/a> \ud398\uc774\uc9c0\ub97c \ucc38\uc870\ud558\uc790.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud2b8\uc704\ud130 API\ub97c \uc774\uc6a9\ud574\uc11c \uc774\uac83\uc800\uac83 \ub9cc\ub4e4\uc5b4 \ubcf4\ub824\uace0 \uac1c\ubc1c\uc790 \ub4f1\ub85d\uc744 \uc2e0\uccad\ud558\ub824\uace0 \ud558\ub294\ub370 \ub2e4\ub978 \uacf3\uacfc\ub294 \ub2e4\ub974\uac8c \uac1c\ubc1c\uc790\ub4e4\uc774 \uc2eb\uc740\ub4ef\ud55c \ub208\uce58\uc778 \ud2b8\uc704\ud130. \uc2e0\uccad \uae00\ub3c4 \ubb54\uac00 \ub9ce\uc774 \uc4f0\ub77c\uace0 \ud558\uace0 \uae38\uac8c \uc4f0\ub77c\uace0 \ud558\uace0 \ub2e4 \uc37c\ub354\ub2c8 \uba54\uc77c\uc744 \ubcf4\ub0b4\uc640\uc11c \ubcf4\uac15\ub0b4\uc6a9 \ubcf4\ub0b4\ub77c\uace0 \ud558\uace0 \ubcf4\ub0c8\ub354\ub2c8 \ub354 \ubcf4\uac15\ud574\uc11c \ubcf4\ub0b4\ub77c\uace0 \ud558\uace0.. \uc0c1\uc0ac\ud55c\ud14c \ubb54\uac00 \uccb4\ud06c\ubc1b\ub294 \uae30\ubd84\uc774 \ub4e4\uc5b4\uc11c \uadf8\ub0e5 \uc548\ud558\uace0 \uc544\uc774\ud504\ub808\uc784\uc73c\ub85c \uc704\uc82f\uc774\ub098 \uc0ac\uc6a9\ud558\ub824\uace0 \uc77c\ub2e8 \uc801\uc6a9\ud574 \ub1a8\ub294\ub370 \uc6ec\uc9c0 \uc880 \ubaa8\uc790\ub77c \ubcf4\uc778\ub2e4. &#8230; <a title=\"[Python] TWINT \ub97c \uc774\uc6a9\ud574\uc11c \ud2b8\uc704\ud130 \uc2a4\ud06c\ub798\ud551(\uae01\uc5b4\uc624\uae30)\" class=\"read-more\" href=\"https:\/\/blog.mydepot.kr\/?p=545\" aria-label=\"[Python] TWINT \ub97c \uc774\uc6a9\ud574\uc11c \ud2b8\uc704\ud130 \uc2a4\ud06c\ub798\ud551(\uae01\uc5b4\uc624\uae30)\uc5d0 \ub300\ud574 \ub354 \uc790\uc138\ud788 \uc54c\uc544\ubcf4\uc138\uc694\">\ub354 \uc77d\uae30<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_lmt_disableupdate":"no","_lmt_disable":"","footnotes":""},"categories":[260],"tags":[261,262,263,264,265,266],"class_list":["post-545","post","type-post","status-publish","format-standard","hentry","category-python","tag-python","tag-pip","tag-twint","tag-twitter","tag-265","tag-266"],"modified_by":"\ucc38\ube5b\ubc14\ub2e4","_links":{"self":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/545","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=545"}],"version-history":[{"count":3,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/545\/revisions"}],"predecessor-version":[{"id":548,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=\/wp\/v2\/posts\/545\/revisions\/548"}],"wp:attachment":[{"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mydepot.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}