{"id":279697,"date":"2016-05-06T12:55:03","date_gmt":"2016-05-06T08:55:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=279697"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=279697","title":{"rendered":"Meduza.io: \u0430 \u043a\u0430\u043a \u0436\u0435 \u043b\u0430\u0439\u043a\u0438?"},"content":{"rendered":"\n<p>\u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437, \u0447\u0438\u0442\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043d\u0430 \u041c\u0435\u0434\u0443\u0437\u0435, \u044f \u043e\u0431\u0440\u0430\u0442\u0438\u043b \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0443 \u0440\u0430\u0437\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0440\u0430\u0437\u043d\u043e\u0435 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043b\u0430\u0439\u043a\u043e\u0432 \u0438\u0437 Facebook \u0438 \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u043d\u043e\u0432\u043e\u0441\u0442\u0438 <a href=\"https:\/\/meduza.io\/news\/2016\/04\/11\/umer-akter-albert-filozov\">\u043c\u0435\u0433\u0430\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b<\/a> \u043d\u0430 fb, \u0430 <a href=\"https:\/\/meduza.io\/news\/2016\/04\/09\/demonstranty-v-londone-potrebovali-otstavki-premier-ministra-iz-za-ofshorov\">\u0434\u0440\u0443\u0433\u0438\u043c\u0438<\/a> \u043b\u044e\u0434\u0438 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c, \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438. \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442!<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1b4\/6bb\/ccf\/1b46bbccf82b46abb3dd51f9f48976f1.png\" alt=\"image\"\/><a name=\"habracut\"><\/a><\/p>\n<p>  <\/p>\n<h2>Data Scraping<\/h2>\n<p>  <\/p>\n<p>\u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u041f\u0440\u0435\u0434\u0432\u043a\u0443\u0448\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0435 \u0440\u0430\u0441\u0447\u0435\u0445\u043b\u0435\u043d\u0438\u0435 Python + BeautifulSoup, \u044f \u043d\u0430\u0447\u0430\u043b \u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u0420\u0430\u0437\u043e\u0447\u0430\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0436\u0434\u0430\u043b\u043e \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e: \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434\u0433\u0440\u0443\u0436\u0430\u0442\u0441\u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 html&#8217;\u043e\u0439, \u0430 \u043e\u0442\u043b\u043e\u0436\u0435\u043d\u043d\u043e. \u0422\u0430\u043a \u043a\u0430\u043a \u044f \u043d\u0435 \u0443\u043c\u0435\u044e JavaScript, \u044f \u043d\u0430\u0447\u0430\u043b \u0438\u0441\u043a\u0430\u0442\u044c \u043d\u043e\u0433\u0438 \u0432 \u0441\u0435\u0442\u0435\u0432\u044b\u0445 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u044f\u0445 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b, \u0438 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u044b\u0441\u0442\u0440\u043e \u043d\u0430\u0442\u043a\u043d\u0443\u043b\u0441\u044f \u043d\u0430 \u0437\u0430\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0443\u0447\u043a\u0443 API \u043c\u0435\u0434\u0443\u0437\u044b:<\/p>\n<p>  <\/p>\n<pre><code>https:\/\/meduza.io\/api\/v3\/social?links=[&quot;shapito\/2016\/05\/03\/poliem-vse-kislotoy-i-votknem-provod-v-rozetku&quot;]<\/code><\/pre>\n<p>  <\/p>\n<p>\u0420\u0443\u0447\u043a\u0430 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043f\u0440\u0438\u044f\u0442\u043d\u0443\u044e \u0433\u043b\u0430\u0437\u0443 json&#8217;\u043a\u0443:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d2c\/b02\/4e1\/d2cb024e129845bf9b4e4154dd7d96c5.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u0438 \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0440\u0430\u0437 <code>links<\/code> \u044d\u0442\u043e \u043c\u0430\u0441\u0441\u0438\u0432, \u0442\u043e \u0441\u0440\u0430\u0437\u0443 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0442\u0443\u0434\u0430 \u0441\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439, \u0438, \u0443\u0440\u0430, \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0449\u0438\u0439 \u043d\u0430\u0441 \u0441\u043f\u0438\u0441\u043e\u043a.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u0436\u0435 \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c!<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043e \u0441\u0430\u043c\u0438\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u044f\u0445. \u0417\u0434\u0435\u0441\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442\u044c \u0445\u0430\u0431\u0440\u043e\u0436\u0438\u0442\u0435\u043b\u044f  <a href=\"https:\/\/habrahabr.ru\/users\/sirekanyan\/\" class=\"user_link\">sirekanyan<\/a> \u0437\u0430 \u0435\u0433\u043e <a href=\"https:\/\/habrahabr.ru\/post\/259471\/\">\u0441\u0442\u0430\u0442\u044c\u044e<\/a>, \u0433\u0434\u0435 \u043e\u043d \u043d\u0430\u0448\u0435\u043b \u0434\u0440\u0443\u0433\u0443\u044e \u0440\u0443\u0447\u043a\u0443.<\/p>\n<p>  <\/p>\n<pre><code>https:\/\/meduza.io\/api\/v3\/search?chrono=news&amp;page=0&amp;per_page=10&amp;locale=ru<\/code><\/pre>\n<p>  <\/p>\n<p>\u041e\u043f\u044b\u0442\u043d\u044b\u043c \u043f\u0443\u0442\u0451\u043c \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430 <code>per_page<\/code> \u0440\u0430\u0432\u043d\u043e 30, \u0430 <code>page<\/code> \u043e\u043a\u043e\u043b\u043e 752 \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438. \u0412\u0430\u0436\u043d\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0440\u0443\u0447\u043a\u0430 <code>social<\/code> \u0432\u044b\u0434\u0435\u0440\u0436\u0438\u0442 \u0432\u0441\u0435 30 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u043e\u0432, \u043f\u0440\u043e\u0439\u0434\u0435\u043d\u0430 \u0443\u0441\u043f\u0435\u0448\u043d\u043e.<\/p>\n<p>  <\/p>\n<p>\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u0442\u044c! \u042f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0438\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 \u043d\u0430 \u043f\u0438\u0442\u043e\u043d\u0435<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">stream = 'https:\/\/meduza.io\/api\/v3\/search?chrono=news&amp;page={page}&amp;per_page=30&amp;locale=ru' social = 'https:\/\/meduza.io\/api\/v3\/social' user_agent = 'Mozilla\/5.0 (Windows NT 6.1; WOW64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/47.0.3411.123 YaBrowser\/16.2.0.2314 Safari\/537.36' headers = {'User-Agent' : user_agent }  def get_page_data(page):     # \u0414\u043e\u0441\u0442\u0430\u0451\u043c \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b     ans = requests.get(stream.format(page = page), headers=headers).json()     # \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0430\u0451\u0442 \u0432\u0441\u0435 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0435     ans_social = requests.get(social, params = {'links' : json.dumps(ans['collection'])}, headers=headers).json()     documents = ans['documents']     for url, data in documents.iteritems():         try:             data['social'] = ans_social[url]['stats']         except KeyError:             continue     with open('res_dump\/page{pagenum:03d}_{timestamp}.json'.format(         pagenum = page, timestamp = int(time.time())     ), 'wb') as f:         json.dump(documents, f, indent=2)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041d\u0430 \u0432\u0441\u044f\u043a\u0438\u0439 \u0441\u043b\u0443\u0447\u0430\u0439 \u043f\u043e\u0434\u0441\u0442\u0430\u0432\u0438\u043b \u0432\u0430\u043b\u0438\u0434\u043d\u044b\u0439 User-Agent, \u043d\u043e \u0438 \u0431\u0435\u0437 \u044d\u0442\u043e\u0433\u043e \u0432\u0441\u0451 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u0434\u043b\u044f \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u043d\u0438\u044f \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043c\u043e\u0433 \u0441\u043a\u0440\u0438\u043f\u0442 \u043c\u043e\u0435\u0433\u043e \u0431\u044b\u0432\u0448\u0435\u0433\u043e \u043a\u043e\u043b\u043b\u0435\u0433\u0438,  <a href=\"https:\/\/habrahabr.ru\/users\/alexkuku\/\" class=\"user_link\">alexkuku<\/a>. \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 \u043f\u0440\u043e \u043f\u043e\u0434\u0445\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u0432 \u0435\u0433\u043e <a href=\"https:\/\/habrahabr.ru\/post\/277919\/\">\u043f\u043e\u0441\u0442\u0435<\/a>, \u043e\u043d \u043f\u043e\u0437\u0432\u043e\u043b\u0438\u043b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0439 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/7dc\/3c4\/c84\/7dc3c4c84407472192cdd5fa191c7f67.gif\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0433\u0440\u0443\u0437\u0438\u043b\u0438\u0441\u044c \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e, \u043c\u0435\u043d\u0435\u0435 \u0447\u0435\u043c \u0437\u0430 10 \u043c\u0438\u043d\u0443\u0442, \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043a\u0430\u043f\u0447\u0438 \u0438\u043b\u0438 \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043c\u0435\u0434\u043b\u0435\u043d\u0438\u044f. \u041a\u0430\u0447\u0430\u043b \u0432 4 \u043f\u043e\u0442\u043e\u043a\u0430 \u0441 \u043e\u0434\u043d\u043e\u0433\u043e \u0430\u0439\u043f\u0438\u0448\u043d\u0438\u043a\u0430, \u0431\u0435\u0437 \u043a\u0430\u043a\u0438\u0445-\u043b\u0438\u0431\u043e \u043d\u0430\u0434\u0441\u0442\u0440\u043e\u0435\u043a.<\/p>\n<p>  <\/p>\n<h2>Data Minining<\/h2>\n<p>  <\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430 \u0432\u044b\u0445\u043e\u0434\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0430\u0441\u044c \u0431\u043e\u043b\u044c\u0448\u0430\u044f json&#8217;\u043a\u0430 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438. \u0422\u0435\u043f\u0435\u0440\u044c \u0437\u0430\u0433\u043e\u043d\u0438\u043c \u0435\u0451 \u0432 pandas dataframe, \u0438 \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u043c \u0432 Jupyter. <\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u043d\u0443\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">df = pd.read_json('database.json').T df = df.join(pd.DataFrame(df.social.to_dict()).T) df.pub_date = pd.DatetimeIndex(df.pub_date) df['trust']=df.source.apply(lambda x: x.get('trust', None) if type(x) == dict else None)<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0438\u043c boxplot<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">df[['fb', 'tw','vk']].plot.box(logy = True);<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8f2\/8b2\/f5d\/8f28b2f5d8c64c85bbb1fcee8a445bb2.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u044b\u0432\u043e\u0434\u043e\u0432:<\/p>\n<p>  <\/p>\n<ol>\n<li>Twitter \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0442\u0432\u0438\u0442\u043d\u0443\u0432\u0448\u0438\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u044c. \ud83d\ude41 \u041f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043e\u0431\u043e\u0439\u0442\u0438\u0441\u044c \u0431\u0435\u0437 \u043d\u0435\u0433\u043e<\/li>\n<li>\u0420\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435, \u043a\u0430\u043a \u0438 \u043e\u0436\u0438\u0434\u0430\u043b\u043e\u0441\u044c, \u043a\u0440\u0430\u0439\u043d\u0435 \u043d\u0435\u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e: \u0435\u0441\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u0441\u0438\u043b\u044c\u043d\u044b\u0435 \u0432\u044b\u0431\u0440\u043e\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0437\u0430\u043c\u0435\u0442\u043d\u044b \u0434\u0430\u0436\u0435 \u043d\u0430 \u043b\u043e\u0433-\u0448\u043a\u0430\u043b\u0435 (\u0441\u043e\u0442\u043d\u0438 \u0442\u044b\u0441\u044f\u0447 \u0440\u0435\u043f\u043e\u0441\u0442\u043e\u0432).<\/li>\n<li>\u041f\u0440\u0438 \u044d\u0442\u043e\u043c, \u0441\u0440\u0435\u0434\u043d\u0435\u0435 \u0447\u0438\u0441\u043b\u043e \u0440\u0435\u043f\u043e\u0441\u0442\u043e\u0432 \u043e\u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0431\u043b\u0438\u0437\u043a\u0438\u043c: \u043c\u0435\u0434\u0438\u0430\u043d\u0430 24 \u0438 17 (\u0437\u0434\u0435\u0441\u044c \u0438 \u0434\u0430\u043b\u0435\u0435, facebook \u0438 \u0432\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435, \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e), \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 vk \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u043e\u043b\u0435\u0435 &quot;\u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u043e&quot;.<\/li>\n<\/ol>\n<p>  <\/p>\n<p>\u0422\u0430\u043a \u043a\u0442\u043e \u0436\u0435 \u0442\u0435 \u0441\u0430\u043c\u044b\u0435 \u0441\u0443\u043f\u0435\u0440-\u0440\u0435\u043f\u043e\u0441\u0442\u043d\u0443\u0442\u044b\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043c\u0435\u0434\u0443\u0437\u044b? \u0423\u0433\u0430\u0434\u0430\u0435\u0442\u0435?<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/283\/c3f\/a2b\/283c3fa2ba89495b8108d502be0b2570.jpg\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041e\u0442\u0432\u0435\u0442:<\/b><\/p>\n<div class=\"spoiler_text\">\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ab5\/ccf\/b7c\/ab5ccfb7c7174f5f902f32e5c0d9876e.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041d\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u0436\u0435, \u043f\u0435\u0440\u0432\u043e\u0435 \u044d\u0442\u043e FB: \u0442\u0430\u043c \u0436\u0435 \u0438\u043d\u043e\u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0435 \u044f\u0437\u044b\u043a\u0438, \u0441\u043e\u0432\u0435\u0442\u0441\u043a\u0438\u0435 \u0433\u0430\u0437\u0435\u0442\u044b, \u0421\u0435\u0440\u043e\u0432. \u0410 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 5nizza, &quot;\u041c\u043e\u044f \u043e\u0440\u0438\u0435\u043d\u0442\u0430\u0446\u0438\u044f&quot;, \u043f\u043e\u043b\u0438\u0442\u0438\u043a\u0430. \u041d\u0435 \u0437\u043d\u0430\u044e, \u043a\u0430\u043a \u043f\u043e \u043c\u043d\u0435, \u0442\u0430\u043a \u0432\u0441\u0451 \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e!<\/p>\n<\/div>\n<\/div>\n<p>  <\/p>\n<p>\u0415\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0432 \u0447\u0435\u043c \u0441\u0445\u043e\u0436\u0438 \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0442\u0435\u043d\u0438\u044f \u0434\u0432\u0443\u0445 \u0441\u043e\u0446.\u0441\u0435\u0442\u0435\u0439: \u044d\u0442\u043e \u0418\u0440\u0438\u043d\u0430 \u042f\u0440\u043e\u0432\u0430\u044f, \u0434\u0430 \u0426\u0432\u0435\u0442\u0430\u0435\u0432\u0430 \u0441 \u0413\u0443\u0444\u043e\u043c.<\/p>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 scatter plot \u0434\u0432\u0443\u0445 \u0432\u0435\u043b\u0438\u0447\u0438\u043d: \u043e\u0436\u0438\u0434\u0430\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0445\u043e\u0440\u043e\u0448\u043e \u043a\u043e\u0440\u0440\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0440\u0443\u0433 \u0441 \u0434\u0440\u0443\u0433\u043e\u043c.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">df['logvk'] = np.log10(df.vk) df['logfb'] = np.log10(df.fb) # \u0411\u0435\u0437 \u043b\u043e\u0433\u0430\u0440\u0438\u0444\u043c\u043e\u0432 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u0430\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430 sns.regplot('logfb', 'logvk', data = df )<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/dbd\/26e\/7da\/dbd26e7da13c4c8981645f3f1f3e6c43.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<pre><code class=\"python\">sns.set(style=&quot;ticks&quot;) sns.jointplot('logfb', 'logvk',                data = df.replace([np.inf, -np.inf], np.nan).dropna(subset = ['logfb', 'logvk']),               kind=&quot;hex&quot;)<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/018\/b8a\/617\/018b8a6179634523912a82887f03d32d.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0432\u0438\u0434\u043d\u043e \u0434\u0432\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430: \u043e\u0434\u0438\u043d \u0441 \u0446\u0435\u043d\u0442\u0440\u043e\u043c \u0432 (2.3, 2.4), \u0438 \u0432\u0442\u043e\u0440\u043e\u0439 \u0440\u0430\u0437\u043c\u0430\u0437\u0430\u043d\u043d\u044b\u0439 \u043e\u043a\u043e\u043b\u043e \u043d\u0443\u043b\u044f. \u0412 \u0446\u0435\u043b\u043e\u043c \u043d\u0435\u0442 \u0446\u0435\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0441\u0442\u0438 \u0430\u043d\u0430\u043b\u0438\u0437 \u0434\u0430\u0436\u0435 \u0434\u043b\u044f \u043d\u0438\u0437\u043a\u043e\u0447\u0430\u0441\u0442\u043e\u0442\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 (\u0442\u0435\u0445, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0438\u0441\u044c \u043d\u0435\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u043c\u0438 \u0432 \u0441\u043e\u0446.\u0441\u0435\u0442\u044f\u0445), \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u043c\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438 \u0441 \u0431\u043e\u043b\u0435\u0435 10 \u043b\u0430\u0439\u043a\u043e\u0432 \u0432 \u043e\u0431\u0435\u0438\u0445 \u0441\u0435\u0442\u044f\u0445. \u041d\u0435 \u0437\u0430\u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u044b \u0438\u0437\u0431\u0430\u0432\u0438\u043b\u0438\u0441\u044c \u043e\u0442 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u0439.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">stripped = df[(df.logfb &gt; 1) &amp; (df.logvk &gt; 1)] print &quot;Working with {0:.0%} of news, {1:.0%} of social network activity&quot;.format(     float(len(stripped)) \/ len(df), float(stripped[['vk', 'fb']].sum().sum()) \/ df[['vk', 'fb']].sum().sum() ) &gt;&gt;&gt; Working with 47% of news, 95% of social network activity<\/code><\/pre>\n<p>  <\/p>\n<p>\u041f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u044c:<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">sns.jointplot('logfb', 'logvk', data = stripped, kind=&quot;kde&quot;, size=7, space=0)```<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/ada\/417\/6c8\/ada4176c8d4c4b2da56be329d64c794a.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<h3>\u0412\u044b\u0432\u043e\u0434\u044b<\/h3>\n<p>  <\/p>\n<ul>\n<li>\u041d\u0430\u0448\u043b\u0438 \u043f\u043b\u043e\u0442\u043d\u044b\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f: 220 \u0432 facebook, 240 \u0432\u043e \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435.<\/li>\n<li>\u041a\u043b\u0430\u0441\u0442\u0435\u0440 \u0432\u044b\u0442\u044f\u043d\u0443\u0442 \u0431\u043e\u043b\u044c\u0448\u0435 \u0432 facebook: \u0432 \u044d\u0442\u043e\u0439 \u0441\u043e\u0446.\u0441\u0435\u0442\u0438 \u043b\u044e\u0434\u0438 \u0440\u0435\u043f\u043e\u0441\u0442\u044f\u0442 \u0431\u043e\u043b\u0435\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u043d\u043e, \u043f\u043e \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044e \u0441 \u0412\u041a, \u0433\u0434\u0435 \u043f\u0438\u043a \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e &quot;\u0443\u0437\u043a\u0438\u0439&quot;<\/li>\n<li>\u0415\u0441\u0442\u044c \u043c\u0438\u043d\u0438-\u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0444\u0435\u0439\u0441\u0431\u0443\u0447\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 150 fb \u0438 \u043e\u043a\u043e\u043b\u043e 70 vk, \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u044b\u0439<\/li>\n<\/ul>\n<p>  <\/p>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u044d\u0442\u043e \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0439 \u0432 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0435: \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043e\u043d\u043e \u043c\u0435\u043d\u044f\u043b\u043e\u0441\u044c.<\/p>\n<p>  <\/p>\n<pre><code class=\"python\">by_month = stripped.set_index('pub_date').groupby(pd.TimeGrouper(freq = 'MS')).agg({'fb':sum, 'vk':sum}) by_month.plot( kind = 'area')<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/bad\/b14\/117\/badb141172444fd1a9a2231b3ec4f9a6.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e, \u0447\u0442\u043e \u043f\u0440\u0438 \u043e\u0431\u0449\u0435\u043c \u0440\u043e\u0441\u0442\u0435 \u043e\u0431\u044a\u0435\u043c\u0430 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 \u0441\u043e\u0446.\u0441\u0435\u0442\u044f\u0445, \u0444\u0435\u0439\u0441\u0431\u0443\u043a \u0440\u0430\u0441\u0442\u0451\u0442 \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0432\u0438\u0434\u043d\u043e \u043a\u0430\u043a\u043e\u0433\u043e-\u0442\u043e \u0432\u0437\u0440\u044b\u0432\u043d\u043e\u0433\u043e \u0440\u043e\u0441\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043e\u0436\u0438\u0434\u0430\u043b \u0431\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0432 \u041c\u0435\u0434\u0443\u0437\u0435. \u041f\u0435\u0440\u0432\u044b\u0435 \u043c\u0435\u0441\u044f\u0446\u044b \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0431\u044b\u043b\u0430 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0438\u0437\u043a\u043e\u0439, \u043d\u043e \u0443\u0436\u0435 \u043a \u0434\u0435\u043a\u0430\u0431\u0440\u044e 2014 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0442\u0430\u0431\u0438\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f, \u043d\u043e\u0432\u044b\u0439 \u0440\u043e\u0441\u0442 \u043d\u0430\u0447\u0430\u043b\u0441\u044f \u043b\u0438\u0448\u044c \u0447\u0435\u0440\u0435\u0437 \u0433\u043e\u0434.<\/p>\n<p>  <\/p>\n<p>\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0430 \u0434\u0438\u043d\u0430\u043c\u0438\u043a\u0443 \u043f\u043b\u043e\u0442\u043d\u043e\u0441\u0442\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 \u0438\u0437 \u0434\u0432\u0443\u0445 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/43e\/08f\/f0c\/43e08ff0c8204e35ba4a3d36c7b5bcaf.gif\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0437\u0430\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c, \u0438 \u0441\u043a\u043e\u0440\u0435\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0430\u0440\u0442\u0435\u0444\u0430\u043a\u0442\u043e\u043c \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e.<\/p>\n<p>  <\/p>\n<p>\u041d\u0430\u043a\u043e\u043d\u0435\u0446, \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0442\u0435\u0439 \u043d\u0435 \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u0438\u043f\u0430 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430: \u0443 \u041c\u0435\u0434\u0443\u0437\u044b \u043a\u0440\u043e\u043c\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0435\u0441\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0438, \u0438\u0441\u0442\u043e\u0440\u0438\u0438, \u0448\u0430\u043f\u0438\u0442\u043e, \u0433\u0430\u043b\u0435\u0440\u0435\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u043e\u043b\u0438\u0433\u043e\u043d. <\/p>\n<p>  <\/p>\n<pre><code class=\"python\">def hexbin(x, y, color, **kwargs):     cmap = sns.light_palette(color, as_cmap=True)     plt.hexbin(x, y, gridsize=20, cmap=cmap, **kwargs)  g = sns.FacetGrid(stripped.loc[::-1], col=&quot;document_type&quot;, margin_titles=True, size=5, col_wrap = 3) g.map(hexbin, &quot;logfb&quot;, &quot;logvk&quot;, extent=[1, 4, 1, 4]);<\/code><\/pre>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/a1b\/b4c\/0fa\/a1bb4c0faba94f348bbeeda44ad3dea2.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<p>\u0412 \u0446\u0435\u043b\u043e\u043c \u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u043f\u043e\u043b\u043d\u0435 \u0441\u0435\u0431\u0435 \u043e\u0434\u043d\u043e\u0440\u043e\u0434\u043d\u044b \u043f\u043e \u043a\u043b\u0430\u0441\u0441\u0430\u043c, \u043d\u0435\u0442 \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0445 \u043f\u0435\u0440\u0435\u043a\u043e\u0441\u043e\u0432. \u042f \u043e\u0436\u0438\u0434\u0430\u043b \u0431\u044b \u043e\u0442 &quot;\u0448\u0430\u043f\u0438\u0442\u043e&quot; \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u043e\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438, \u043d\u043e \u044d\u0442\u043e\u0433\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0430 \u043d\u0435 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u0442\u0441\u044f.<\/p>\n<p>  <\/p>\n<p>\u0417\u0430\u0442\u043e, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0440\u0430\u0437\u0431\u0438\u0432\u043a\u0443 \u043f\u043e <a href=\"https:\/\/www.facebook.com\/AlShaburov\/posts\/10206190006647888\">\u0443\u0440\u043e\u0432\u043d\u044e \u0434\u043e\u0432\u0435\u0440\u0438\u044f \u043a \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0443<\/a>, \u0442\u043e \u043f\u0440\u0438\u044f\u0442\u043d\u043e \u0432\u0438\u0434\u0435\u0442\u044c, \u0447\u0442\u043e \u043d\u0435\u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043c\u0435\u043d\u0435\u0435 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u0435\u043d \u0432 \u0441\u043e\u0446.\u0441\u0435\u0442\u044f\u0445, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0432 \u0444\u0435\u0439\u0441\u0431\u0443\u043a\u0435:<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/cb7\/de5\/0c5\/cb7de50c54a64d5b834d240ada2d80f0.png\" alt=\"image\"\/><\/p>\n<p>  <\/p>\n<h2>\u0427\u0442\u043e \u0434\u0430\u043b\u044c\u0448\u0435?<\/h2>\n<p>  <\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u043c\u043e\u0439 \u0432\u0435\u0447\u0435\u0440 \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u043b\u0441\u044f, \u0438 \u044f \u043f\u043e\u0448\u0435\u043b \u0441\u043f\u0430\u0442\u044c. \ud83d\ude42<\/p>\n<p>  <\/p>\n<ul>\n<li>\u042f \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u043b \u043e\u0431\u0443\u0447\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u0443\u044e Ridle \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u044e \u043d\u0430 word2vec \u0434\u0430\u043d\u043d\u044b\u0445 \u0438\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u0441\u0442\u0430\u0442\u0435\u0439. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c <a href=\"https:\/\/github.com\/apetrin\/meduza.io-parse-likes\/blob\/master\/processing.ipynb\">\u043d\u0430 \u0433\u0438\u0442\u0445\u0430\u0431\u0435<\/a>, \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u0441\u0438\u043b\u044b \u0442\u0430\u043c \u043d\u0435\u0442. \u041a\u0430\u0436\u0435\u0442\u0441\u044f, \u0447\u0442\u043e\u0431\u044b \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u0440\u0435\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043b\u0430\u0439\u043a\u043e\u0432, \u0441\u0442\u043e\u0438\u0442 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0431\u0443\u0447\u0438\u0442\u044c \u043c\u043e\u0434\u0435\u043b\u044c \u043d\u0430 \u043f\u043e\u043b\u043d\u044b\u0445 \u0442\u0435\u043a\u0441\u0442\u0430\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439.<\/li>\n<li>\u041d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u044d\u0442\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u043c\u043e\u0436\u043d\u043e \u043b\u043e\u0432\u0438\u0442\u044c &quot;\u044f\u0440\u043a\u0438\u0435&quot; \u0441\u043e\u0431\u044b\u0442\u0438\u044f, \u0441\u0438\u043b\u044c\u043d\u043e \u0432\u0441\u043a\u043e\u043b\u044b\u0445\u043d\u0443\u0432\u0448\u0438\u0435 \u043e\u0431\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0441\u0442\u044c. \u041f\u0440\u0438 \u044d\u0442\u043e\u043c \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 fb\/vk \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u0438\u043c \u043f\u0440\u0435\u0434\u0438\u043a\u0442\u043e\u0440\u043e\u043c \u0434\u043b\u044f \u0442\u0438\u043f\u0430 \u043d\u043e\u0432\u043e\u0441\u0442\u0438. <\/li>\n<li>\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c \u0432 \u0441\u043e\u0446.\u0441\u0435\u0442\u044f\u0445, \u043a\u0430\u0436\u0435\u0442\u0441\u044f, \u0441\u0435\u0439\u0447\u0430\u0441 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0442\u0430\u043a\u0438\u043c \u0436\u0435 \u0432\u0430\u0436\u043d\u044b\u043c KPI \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u043d\u0438\u043a\u0430, \u043a\u0430\u043a \u0438 \u043f\u043e\u0441\u0435\u0449\u0430\u0435\u043c\u043e\u0441\u0442\u044c. \u041c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 \u0430\u0432\u0442\u043e\u0440\u043e\u0432 \/ \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0438 \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b\u0445 \u043f\u043e\u0441\u0442\u043e\u0432, \u0438 \u043d\u0430 \u044d\u0442\u043e\u0439 \u0431\u0430\u0437\u0435 \u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0446\u0435\u043d\u043a\u0443 \u0440\u0430\u0431\u043e\u0442\u0435. \u0412 \u043f\u043e\u043b\u044c\u0437\u0443 \u044d\u0442\u043e\u0439 \u0438\u0434\u0435\u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043f\u043e \u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e\u0441\u0442\u0438 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430: \u0432 facebook \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u043e\u0441\u0442\u044f\u0442 \u043d\u0435\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u044b\u0435 \u043d\u043e\u0432\u043e\u0441\u0442\u0438. \u0414\u0443\u043c\u0430\u044e, \u0432 \u0442\u043e\u043c \u0438\u043b\u0438 \u0438\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u044d\u0442\u043e \u0443\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u0436\u0443\u0440\u043d\u0430\u043b\u0438\u0441\u0442\u0438\u043a\u0435.<\/li>\n<\/ul>\n<p>  <\/p>\n<p><a href=\"https:\/\/github.com\/apetrin\/meduza.io-parse-likes\">\u041a\u043e\u0434 \u043d\u0430 Github<\/a><\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/283058\/\"> https:\/\/habrahabr.ru\/post\/283058\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<p>\u041a\u0430\u043a-\u0442\u043e \u0440\u0430\u0437, \u0447\u0438\u0442\u0430\u044f \u043d\u043e\u0432\u043e\u0441\u0442\u0438 \u043d\u0430 \u041c\u0435\u0434\u0443\u0437\u0435, \u044f \u043e\u0431\u0440\u0430\u0442\u0438\u043b \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0443 \u0440\u0430\u0437\u043d\u044b\u0445 \u043d\u043e\u0432\u043e\u0441\u0442\u0435\u0439 \u0440\u0430\u0437\u043d\u043e\u0435 \u0441\u043e\u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u043b\u0430\u0439\u043a\u043e\u0432 \u0438\u0437 Facebook \u0438 \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u041a\u0430\u043a\u0438\u0435-\u0442\u043e \u043d\u043e\u0432\u043e\u0441\u0442\u0438 <a href=\"https:\/\/meduza.io\/news\/2016\/04\/11\/umer-akter-albert-filozov\">\u043c\u0435\u0433\u0430\u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b<\/a> \u043d\u0430 fb, \u0430 <a href=\"https:\/\/meduza.io\/news\/2016\/04\/09\/demonstranty-v-londone-potrebovali-otstavki-premier-ministra-iz-za-ofshorov\">\u0434\u0440\u0443\u0433\u0438\u043c\u0438<\/a> \u043b\u044e\u0434\u0438 \u0434\u0435\u043b\u044f\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043e \u0412\u041a\u043e\u043d\u0442\u0430\u043a\u0442\u0435. \u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u0438\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c\u0441\u044f \u043a \u044d\u0442\u0438\u043c \u0434\u0430\u043d\u043d\u044b\u043c, \u043f\u043e\u043f\u044b\u0442\u0430\u0442\u044c\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432 \u043d\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0435 \u0437\u0430\u043a\u043e\u043d\u043e\u043c\u0435\u0440\u043d\u043e\u0441\u0442\u0438. \u0417\u0430\u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043e\u0432\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u044e \u043f\u043e\u0434 \u043a\u0430\u0442!<\/p>\n<p>  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/1b4\/6bb\/ccf\/1b46bbccf82b46abb3dd51f9f48976f1.png\" alt=\"image\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-279697","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=279697"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/279697\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=279697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=279697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=279697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}