{"id":974,"date":"2012-05-01T22:27:20","date_gmt":"2012-05-01T19:27:20","guid":{"rendered":"http:\/\/hxml.me\/blog\/?p=974"},"modified":"2012-05-30T17:28:53","modified_gmt":"2012-05-30T14:28:53","slug":"itunesconnect-scraper","status":"publish","type":"post","link":"https:\/\/hxml.me\/blog\/coding\/itunesconnect-scraper\/","title":{"rendered":"<!--:en-->iTunesConnect: storing sales reports to database<!--:--><!--:ru-->iTunesConnect: \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0435 \u0432 \u0431\u0430\u0437\u0443 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u0445<!--:-->"},"content":{"rendered":"<p><!--:en--><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/itunesconnect.png\" alt=\"\" width=\"256\" height=\"190\" \/><\/p>\n<p>Recently I&#8217;ve faced the problem of populating different <strong>statistics from iTunesConnect<\/strong> portal. Mostly I was intrested in getting full downloading statistics. The iTunesConnect portal provides user with ability of viewing and downloading weekly <strong>sales reports<\/strong> only for last three monthes and daily reports only for last month which means the oldest stat is simply getting lost. The solution is obvious: we need to create some mechanism which would populate data and save it to database everyday. After implementing main routine we can enjoy with making different decorations such as visualizing and analytics. Besides, we can easily save current application states which can be useful if some of apps are in state of Wating for review.\u00a0<!--:--><!--:ru--><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/itunesconnect.png\" alt=\"\" width=\"256\" height=\"190\" \/>\u041e\u0437\u0430\u0434\u0430\u0447\u0438\u043b\u0441\u044f \u044f \u043d\u0435\u0434\u0430\u0432\u043d\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439 \u0441\u0431\u043e\u0440\u0430 \u0440\u0430\u0437\u043b\u0438\u0447\u043d\u043e\u0439 <strong>\u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0432 iTunesConnect<\/strong>. \u0412 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0441\u0442\u0435\u043f\u0435\u043d\u0438 \u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0438\u043c\u0435\u0442\u044c \u0431\u044b\u0441\u0442\u0440\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0443\u044e \u0438 \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u0435\u0435, <strong>\u043f\u043e\u043b\u043d\u0443\u044e \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0439<\/strong>. \u041f\u043e\u0440\u0442\u0430\u043b iTunesConnect \u0434\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u0430\u0442\u0440\u0438\u0432\u0430\u0442\u044c \u0438 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u0442\u044c \u043d\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0435 <strong>sales reports<\/strong> \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0442\u0440\u0438 \u043c\u0435\u0441\u044f\u0446\u0430, \u0430 \u0434\u043d\u0435\u0432\u043d\u044b\u0435 \u0437\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u043c\u0435\u0441\u044f\u0446. \u0422\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0441\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0435\u043c \u0447\u0430\u0441\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0438 \u0442\u0435\u0440\u044f\u0435\u0442\u0441\u044f, \u0447\u0442\u043e \u043d\u0435 \u0435\u0441\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0441\u0430\u043c\u043e: \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435\u043a\u0438\u0439 \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0435\u0436\u0435\u0434\u043d\u0435\u0432\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0438\u0445 \u0432 \u0431\u0430\u0437\u0443. \u0414\u0430\u043b\u0435\u0435 \u0443\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u0432\u0441\u044f\u043a\u0438\u0435 \u043a\u0440\u0430\u0441\u0438\u0432\u043e\u0441\u0442\u0438 \u043d\u0430\u0432\u043e\u0434\u0438\u0442\u044c \u0442\u0438\u043f\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\/\u0430\u043d\u0430\u043b\u0438\u0442\u0438\u043a\u0438. \u041a\u043e \u0432\u0441\u0435\u043c\u0443 \u043f\u0440\u043e\u0447\u0435\u043c\u0443, \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0443\u0442\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u043e, \u0435\u0441\u043b\u0438 \u043a\u0430\u043a\u0438\u0435-\u043b\u0438\u0431\u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f \u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 Waiting For Review. \u00a0<!--:--><!--more--><!--:en--><br \/>\nThinking about the problem, I&#8217;ve been researching if there some compete solutions exists, but unsusccessfully, looks like nobody cares about it. There are lot of native iOS apps that allow to observe you app right from the device. Easy? Agrre, but for some reasons I&#8217;m not happy with that solution. First of all because of local data storage. I prefer to store data centralized and to have full control. Besides, I don&#8217;t like the restrictions of third-party applications which you can&#8217;t remove. Also these apps can&#8217;t provide sales reports data ingerity because in order to provide it you should run the app everyday &#8212; in iOS no background jobs are permitted.<\/p>\n<p>Well, let it be. Let&#8217;s produce our automatic<strong> iTunesConnect scraper<\/strong>. Scraping is the process of collecting data from public source such as web site. Different search engines bots (like google bots) which do indexing of all world wide web can be represented as an example of scraper. Our scraper will index only one site &#8212; http:\/\/itunesconnect.apple.com.<\/p>\n<p>[ad#inline_post]<\/p>\n<p>Looking ahead, the result can be presented as follows (the image is clickable):<\/p>\n<p><a title=\"itc scraper example\" href=\"http:\/\/hxml.me\/demo\/itc\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/itc-scraper-example.png\" alt=\"\" width=\"367\" height=\"308\" \/><\/a>There is no public itunesconnect API due to some political reasons so we&#8217;ll have to reproduce all user&#8217;s actions perfomed in web browser, such as authorization, clicking certain links, saving downloaded reports.<\/p>\n<p>In fact, how it can be implemented? There are two ways of doing this. If the site is based on classic HTTP GET\/POST it can be  achived by analyzing web pages content. But there are less classic sites today, moreover itunesconnect doesn&#8217;t belong to them. Nowadays javascript and ajax rule. Besides, here comes HTML5 epoch.<\/p>\n<p>It&#8217;s very hard to analyze all the ajax mechanics &#8212; learning a dozens miles of javascirpt code is not for nervous people. In this situation http sniffing can be much more helpful. Let&#8217;s take our favorite sniffer tool and see what browser transfers to server and what server is responding when user do certain actions. All that&#8217;s left to do is reproduce this process programmatically. iTunesConnect has modern web2.0 interface and that&#8217;s why it doesn&#8217;t make sense to analyze its javascript part. From other side http sniffing is not useful for 100% because the portal uses HTTPS (secured) protocol and all data is being encrypted. All we can see in sniffer tool is some binary garbage. What can be done? The solution was found by me in one of my less favorite browser FireFox. There is a beautiful plugin which calls  <a title=\"temperdata FireFox plugin\" href=\"http:\/\/tamperdata.mozdev.org\/help.html\" target=\"_blank\">temperdata<\/a>.<\/p>\n<p>I don&#8217;t want to describe in details the entire source, I hope it&#8217;s well enough commented. You can <span style=\"font-size: 110%;font-weight: bold\">download PHP iTunes scraper<\/span> <a title=\"PHP iTunesConnect scraper\" href=\"http:\/\/code.google.com\/p\/itc-scraper\/\" target=\"_blank\">here<\/a> (this time I decided to upload sources to google repository)<\/p>\n<p>For applications states and reports storage we need to create two tables:<\/p>\n<p>&nbsp;<\/p>\n<pre lang=\"mysql\">CREATE TABLE  `apps`.`itc_apps` (\r\n  `Title` varchar(255) NOT NULL DEFAULT '',\r\n  `SKU` varchar(255) NOT NULL DEFAULT '',\r\n  `BundleId` varchar(255) NOT NULL DEFAULT '',\r\n  `AppleId` varchar(64) NOT NULL DEFAULT '',\r\n  `AppType` varchar(64) NOT NULL DEFAULT '',\r\n  `DefaultLanguage` varchar(64) NOT NULL DEFAULT '',\r\n  `AppstoreLink` varchar(255) NOT NULL DEFAULT '',\r\n  `cver_version` varchar(16) DEFAULT NULL,\r\n  `cver_status` varchar(32) DEFAULT NULL,\r\n  `cver_status_color` varchar(16) DEFAULT NULL,\r\n  `cver_date_created` int(11) DEFAULT NULL,\r\n  `cver_date_released` int(11) DEFAULT NULL,\r\n  `nver_version` varchar(16) DEFAULT NULL,\r\n  `nver_status` varchar(32) DEFAULT NULL,\r\n  `nver_status_color` varchar(16) DEFAULT NULL,\r\n  `nver_date_created` int(11) DEFAULT NULL,\r\n  `nver_date_released` int(11) DEFAULT NULL,\r\n  `creation_date` int(11) NOT NULL DEFAULT '0',\r\n  `update_date` int(11) NOT NULL DEFAULT '0',\r\n  PRIMARY KEY (`Title`,`BundleId`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=utf8<\/pre>\n<pre lang=\"mysql\">CREATE TABLE  `apps`.`itc_sales` (\r\n  `Provider` varchar(255) NOT NULL DEFAULT '',\r\n  `ProviderCountry` varchar(255) NOT NULL DEFAULT '',\r\n  `SKU` varchar(255) NOT NULL DEFAULT '',\r\n  `Developer` varchar(255) NOT NULL DEFAULT '',\r\n  `Title` varchar(255) NOT NULL DEFAULT '',\r\n  `Version` varchar(255) NOT NULL DEFAULT '',\r\n  `ProductTypeIdentifier` varchar(255) NOT NULL DEFAULT '',\r\n  `Units` int(11) NOT NULL DEFAULT '0',\r\n  `DeveloperProceeds` float NOT NULL DEFAULT '0',\r\n  `BeginDate` int(11) NOT NULL DEFAULT '0',\r\n  `EndDate` int(11) NOT NULL DEFAULT '0',\r\n  `CustomerCurrency` varchar(255) NOT NULL DEFAULT '',\r\n  `CountryCode` varchar(255) NOT NULL DEFAULT '',\r\n  `CurrencyOfProceeds` varchar(255) NOT NULL DEFAULT '',\r\n  `AppleIdentifier` varchar(255) NOT NULL DEFAULT '',\r\n  `CustomerPrice` float NOT NULL DEFAULT '0',\r\n  `PromoCode` varchar(255) DEFAULT NULL,\r\n  `ParentIdentifier` varchar(255) DEFAULT NULL,\r\n  `Subscription` varchar(255) DEFAULT NULL,\r\n  `Period` varchar(255) DEFAULT NULL,\r\n  `creation_date` int(11) NOT NULL DEFAULT '0',\r\n  `update_date` int(11) NOT NULL DEFAULT '0'\r\n) ENGINE=MyISAM DEFAULT CHARSET=utf8<\/pre>\n<p>itc_scraper.php script performs data collecting. In order to use it you need to configure config.php file. There you can specify such parameters as database credentials, iTunes logins list, the list of applications you&#8217;d like to monitor. The script also creates on the disk agregated data snapshot. The information is stored in `meta` folder in form of serialized php-objects so there is no need to establish db-connection each time the script is accessed by user browser.  \u00a0<a title=\"iTunesConnect scraper \u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\" href=\"http:\/\/hxml.me\/demo\/itc\" target=\"_blank\">\u041d\u0435r\u0435<\/a> is an example of how I designed the data visualization. This script uses only data from `meta` folder.<\/p>\n<p>P.S. Now I&#8217;m thinking about composing simple iOS-application which will do server request and display recevied data. There is no need to create some complecated parse routines in Objective-C, we can receive complete html code and display it in standard UIWebView component. We can also improve this idea e.g. by implementing the concept of repositories. For instance, we could keep the stat from different sets of iTunes logins. That could be useful, e.g. if you have your personal iTunes account and account of your employer &#8212; I wouldn&#8217;t like to show my data to some sales guys))<!--:--><!--:ru--> \u041e\u0431\u0434\u0443\u043c\u044b\u0432\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0443 \u044f, \u0435\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u043b \u043f\u043e\u0438\u0441\u043a\u0438 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439, \u043d\u043e \u043a\u0430\u043a-\u0442\u043e \u043d\u0435 \u0441\u043a\u0430\u0437\u0430\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u043f\u0435\u0448\u043d\u043e &#8212; \u043f\u043e\u0447\u0435\u043c\u0443-\u0442\u043e \u044d\u0442\u0430 \u0438\u0434\u0435\u044f \u043c\u0430\u043b\u043e \u043a\u043e\u0433\u043e \u0437\u0430\u0431\u043e\u0442\u0438\u0442. \u0425\u043e\u0442\u044f \u0435\u0441\u0442\u044c \u0446\u0435\u043b\u044b\u0439 \u043f\u0440\u0435\u0441\u0441 iOS-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0441\u0435 \u044d\u0442\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u043f\u0440\u044f\u043c\u043e \u0441\u043e \u0441\u0432\u043e\u0435\u0433\u043e \u0434\u0435\u0432\u0430\u0439\u0441\u0430. \u0423\u0434\u043e\u0431\u043d\u043e? \u041d\u0435 \u0441\u043f\u043e\u0440\u044e. \u041d\u043e \u043c\u0435\u043d\u044f \u043d\u0435 \u0443\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u0442 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u043e\u0441\u0442\u044c \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u0430 (\u0432\u0441\u0435\u0433\u0434\u0430 \u043f\u0440\u043e\u0449\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0430\u043c\u043e\u043c\u0443 \u0438 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u0442\u044c \u0441\u0435\u0431\u044f \u043d\u0438 \u0432 \u0447\u0435\u043c), \u0430 \u0442\u0430\u043a\u0436\u0435 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445. \u041d\u0435 \u0437\u043d\u0430\u044e \u043f\u043e\u0447\u0435\u043c\u0443, \u043d\u043e \u043c\u043d\u0435 \u0441\u043f\u043e\u043a\u043e\u0439\u043d\u0435\u0435, \u043a\u043e\u0433\u0434\u0430 \u0434\u0430\u043d\u043d\u044b\u0435 \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043e, \u0438 \u043a\u043e\u0433\u0434\u0430 \u044f \u0438\u043c\u0435\u044e \u043d\u0430\u0434 \u043d\u0438\u043c\u0438 \u043f\u043e\u043b\u043d\u044b\u0439 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c. \u041a \u0442\u043e\u043c\u0443 \u0436\u0435 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442\u044c \u0446\u0435\u043b\u043e\u0441\u0442\u043d\u043e\u0441\u0442\u044c \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u0442\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u0435\u0441\u043b\u0438 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0435\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u0440\u0430\u0437 \u0432 \u0434\u0435\u043d\u044c. \u0418\u043d\u0430\u0447\u0435 \u0432 \u0431\u044d\u043a\u0433\u0440\u0430\u0443\u043d\u0434\u0435 \u043d\u0438\u043a\u0430\u043a\u0438\u0445 \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u043c\u043e\u0436\u0435\u0442.  \u0418 \u0442\u0430\u043a, \u0440\u0435\u0448\u0435\u043d\u043e, \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c <strong>iTunesConnect scraper<\/strong>. Scrapping &#8212; \u043c\u043e\u0434\u043d\u043e\u0435 \u0441\u043b\u043e\u0432\u0435\u0447\u043a\u043e (\u043e\u0442 \u0430\u043d\u0433\u043b. <em>to scrape<\/em> &#8212; \u0441\u043e\u0441\u043a\u0440\u0435\u0431\u0430\u0442\u044c), \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0449\u0435\u0435 \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u0431\u043e\u0440\u0430 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0438\u0437 \u043e\u0431\u0449\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430, \u0442\u0430\u043a\u043e\u0433\u043e, \u043a\u0430\u043a \u0432\u0435\u0431-\u0441\u0430\u0439\u0442. \u042f\u0440\u043a\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u0441\u043a\u0440\u0435\u0439\u043f\u0435\u0440\u0430 \u043c\u043e\u0433\u0443\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u043f\u043e\u0438\u0441\u043a\u043e\u0432\u044b\u0435 \u0440\u043e\u0431\u043e\u0442\u044b \u0442\u0438\u043f\u0430 Google \u0438 \u042f\u043d\u0434\u0435\u043a\u0441, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u0443\u044e\u0442 \u0432\u0435\u0431-\u0441\u0430\u0439\u0442\u044b \u0432\u0441\u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430. \u041d\u0430\u0448 \u0440\u043e\u0431\u043e\u0442 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0434\u0435\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0441\u0430\u0439\u0442 &#8212; http:\/\/itunesconnect.apple.com.<\/p>\n<p>[ad#inline_post]<\/p>\n<p>\u0417\u0430\u0431\u0435\u0433\u0430\u044f \u0432\u043f\u0435\u0440\u0435\u0434, \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u044d\u0442\u043e \u0432\u0441\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a (\u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u043e):  <a title=\"itc scraper example\" href=\"http:\/\/hxml.me\/demo\/itc\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"http:\/\/hxml.me\/img\/post\/itc-scraper-example.png\" alt=\"\" width=\"367\" height=\"308\" \/><\/a>\u041f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u0433\u043e API itunesconnect \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u043e \u043f\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043e\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043d\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u044c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435, \u0442\u043e \u0435\u0441\u0442\u044c, \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u043e\u0442\u0432\u0435\u0442, \u043a\u043b\u0438\u043a\u043d\u0443\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438, \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u043a\u043e\u043d\u0442\u0435\u043d\u0442, \u043e\u043f\u044f\u0442\u044c \u0435\u0433\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0441\u0438\u0442\u044c \u0438 \u0441\u043b\u043e\u0436\u0438\u0442\u044c \u0432 \u0431\u0430\u0437\u0443. \u041a\u0430\u043a \u0432\u043e\u043e\u0431\u0449\u0435 \u0440\u0435\u0430\u043b\u0438\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u043e\u0434\u043e\u0431\u043d\u043e\u0435? \u0415\u0441\u043b\u0438 \u0441\u0430\u0439\u0442 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0439, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c HTTP GET\/POST, \u0442\u043e \u043c\u043e\u0436\u043d\u043e \u043c\u0435\u0442\u043e\u0434\u043e\u043c \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430 \u0432\u0435\u0431-\u0441\u0442\u0440\u0430\u043d\u0438\u0446. \u041d\u043e \u0442\u0430\u043a\u0438\u0445 \u0441\u0430\u0439\u0442\u043e\u0432 \u0432 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0441\u0442\u0438 \u0443\u0436\u0435 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c, \u0438 \u0443\u0436 \u0442\u0435\u043c \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0440\u0442\u0430\u043b iTunesConnect \u043d\u0435 \u0438\u0437 \u0438\u0445 \u0447\u0438\u0441\u043b\u0430. \u0421\u0435\u0439\u0447\u0430\u0441 \u0431\u0430\u043b\u043e\u043c \u043f\u0440\u0430\u0432\u044f\u0442 javascript, ajax, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u044d\u043f\u043e\u0445\u0430 HTML5. \u0410\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u044e \u043c\u0435\u0445\u0430\u043d\u0438\u043a\u0443 ajax&#8217;a \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c \u043e\u0447\u0435\u043d\u044c \u0441\u043b\u043e\u0436\u043d\u043e &#8212; \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0435 \u043a\u0438\u043b\u043e\u043c\u0435\u0442\u0440\u043e\u0432 javascript&#8217;\u0430 \u0437\u0430\u043d\u044f\u0442\u0438\u0435 \u043d\u0435 \u0434\u043b\u044f \u0441\u043b\u0430\u0431\u043e\u043d\u0435\u0440\u0432\u043d\u044b\u0445. \u0412 \u044d\u0442\u043e\u0439 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u043d\u0430 \u043f\u043e\u043c\u043e\u0449\u044c \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u0432\u0442\u043e\u0440\u043e\u0439 \u043c\u0435\u0442\u043e\u0434 &#8212; \u0441\u0438\u043d\u0444\u0444\u0438\u043d\u0433. \u0411\u0435\u0440\u0435\u043c \u0432 \u0440\u0443\u043a\u0438 \u043b\u044e\u0431\u0438\u043c\u0443\u044e \u0441\u043d\u0438\u0444\u0444\u0435\u0440-\u0443\u0442\u0438\u043b\u0438\u0442\u0443 (\u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043b\u0443\u0448\u043a\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u0442\u0440\u0430\u0444\u0438\u043a\u0430), \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u0432 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044f, \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043e\u0442\u0441\u044b\u043b\u0430\u0435\u0442 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440, \u0438 \u0447\u0442\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u0435\u043c\u0443 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442. \u0414\u0430\u043b\u0435\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c \u0432\u0441\u0435 \u044d\u0442\u043e \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e. iTunesConnect \u0438\u043c\u0435\u0435\u0442 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 web2.0 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0441 \u0430\u043d\u0430\u043b\u0438\u0437\u043e\u043c javascript \u043e\u0442\u043f\u0430\u0434\u0430\u0435\u0442 \u0441\u0440\u0430\u0437\u0443. \u041e\u0434\u043d\u0430\u043a\u043e \u0438 \u0441\u043d\u0438\u0444\u0444\u0438\u043d\u0433 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 100% \u0432\u0430\u0440\u0438\u0430\u043d\u0442, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u043e\u0440\u0442\u0430\u043b \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e HTTPS(secured), \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0432\u0435\u0441\u044c \u0442\u0440\u0430\u0444\u0438\u043a \u0448\u0438\u0444\u0440\u0443\u0435\u0442\u0441\u044f \u0430\u0441\u0438\u043c\u043c\u0435\u0442\u0440\u0438\u0447\u043d\u044b\u043c \u043a\u043b\u044e\u0447\u043e\u043c, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u043d\u0438\u0444\u0435\u0440\u0435 \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0431\u0435\u0441\u0441\u043c\u044b\u0441\u043b\u0438\u0446\u0443. \u0427\u0442\u043e \u0434\u0435\u043b\u0430\u0442\u044c? \u042f \u043d\u0430\u0448\u0435\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0432 \u043d\u0435\u043e\u0447\u0435\u043d\u044c \u043c\u043d\u043e\u044e \u043b\u044e\u0431\u0438\u043c\u043e\u043c FireFox. \u0414\u043b\u044f \u043d\u0435\u0433\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d \u0445\u043e\u0440\u043e\u0448\u0438\u0439 \u043f\u043b\u0430\u0433\u0438\u0438\u043d <a title=\"temperdata FireFox plugin\" href=\"http:\/\/tamperdata.mozdev.org\/help.html\" target=\"_blank\">temperdata<\/a>. \u041d\u0443 \u0430 \u0434\u0430\u043b\u044c\u0448\u0435 \u0434\u0435\u043b\u043e \u0442\u0435\u0445\u043d\u0438\u043a\u0438. \u041d\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0441\u043f\u0438\u0441\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u043a\u043e\u0434, \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u043e\u043d \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u043d\u0435 \u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u0437\u0430\u0442\u0440\u0443\u0434\u043d\u0435\u043d\u0438\u0439. <span style=\"font-size: 110%;font-weight: bold\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c PHP iTunes scraper<\/span> \u043c\u043e\u0436\u043d\u043e <a title=\"PHP iTunesConnect scraper\" href=\"http:\/\/code.google.com\/p\/itc-scraper\/\" target=\"_blank\">\u0437\u0434\u0435\u0441\u044c<\/a> (\u0440\u0435\u0448\u0438\u043b \u0432 \u044d\u0442\u043e\u0442 \u0440\u0430\u0437  \u0437\u0430\u043b\u0438\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0439 code.google.com &#8212; \u0441\u043c\u043e\u0442\u0440\u044e, \u044d\u0442\u043e \u043c\u043e\u0434\u043d\u043e). \u0414\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f\u0445 \u0438 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u0432 \u0431\u0430\u0437\u0435 \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u0430\u0440\u0430 \u0442\u0430\u0431\u043b\u0438\u0446:<\/p>\n<pre lang=\"mysql\">CREATE TABLE  `apps`.`itc_apps` (\r\n  `Title` varchar(255) NOT NULL DEFAULT '',\r\n  `SKU` varchar(255) NOT NULL DEFAULT '',\r\n  `BundleId` varchar(255) NOT NULL DEFAULT '',\r\n  `AppleId` varchar(64) NOT NULL DEFAULT '',\r\n  `AppType` varchar(64) NOT NULL DEFAULT '',\r\n  `DefaultLanguage` varchar(64) NOT NULL DEFAULT '',\r\n  `AppstoreLink` varchar(255) NOT NULL DEFAULT '',\r\n  `cver_version` varchar(16) DEFAULT NULL,\r\n  `cver_status` varchar(32) DEFAULT NULL,\r\n  `cver_status_color` varchar(16) DEFAULT NULL,\r\n  `cver_date_created` int(11) DEFAULT NULL,\r\n  `cver_date_released` int(11) DEFAULT NULL,\r\n  `nver_version` varchar(16) DEFAULT NULL,\r\n  `nver_status` varchar(32) DEFAULT NULL,\r\n  `nver_status_color` varchar(16) DEFAULT NULL,\r\n  `nver_date_created` int(11) DEFAULT NULL,\r\n  `nver_date_released` int(11) DEFAULT NULL,\r\n  `creation_date` int(11) NOT NULL DEFAULT '0',\r\n  `update_date` int(11) NOT NULL DEFAULT '0',\r\n  PRIMARY KEY (`Title`,`BundleId`)\r\n) ENGINE=MyISAM DEFAULT CHARSET=utf8<\/pre>\n<pre lang=\"mysql\">CREATE TABLE  `apps`.`itc_sales` (\r\n  `Provider` varchar(255) NOT NULL DEFAULT '',\r\n  `ProviderCountry` varchar(255) NOT NULL DEFAULT '',\r\n  `SKU` varchar(255) NOT NULL DEFAULT '',\r\n  `Developer` varchar(255) NOT NULL DEFAULT '',\r\n  `Title` varchar(255) NOT NULL DEFAULT '',\r\n  `Version` varchar(255) NOT NULL DEFAULT '',\r\n  `ProductTypeIdentifier` varchar(255) NOT NULL DEFAULT '',\r\n  `Units` int(11) NOT NULL DEFAULT '0',\r\n  `DeveloperProceeds` float NOT NULL DEFAULT '0',\r\n  `BeginDate` int(11) NOT NULL DEFAULT '0',\r\n  `EndDate` int(11) NOT NULL DEFAULT '0',\r\n  `CustomerCurrency` varchar(255) NOT NULL DEFAULT '',\r\n  `CountryCode` varchar(255) NOT NULL DEFAULT '',\r\n  `CurrencyOfProceeds` varchar(255) NOT NULL DEFAULT '',\r\n  `AppleIdentifier` varchar(255) NOT NULL DEFAULT '',\r\n  `CustomerPrice` float NOT NULL DEFAULT '0',\r\n  `PromoCode` varchar(255) DEFAULT NULL,\r\n  `ParentIdentifier` varchar(255) DEFAULT NULL,\r\n  `Subscription` varchar(255) DEFAULT NULL,\r\n  `Period` varchar(255) DEFAULT NULL,\r\n  `creation_date` int(11) NOT NULL DEFAULT '0',\r\n  `update_date` int(11) NOT NULL DEFAULT '0'\r\n) ENGINE=MyISAM DEFAULT CHARSET=utf8<\/pre>\n<p>\u0421\u0431\u043e\u0440\u043e\u043c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0441\u043a\u0440\u0438\u043f\u0442 itc_scraper.php. \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b config.php. \u0417\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u0441\u043f\u0438\u0441\u043e\u043a \u043b\u043e\u0433\u0438\u043d\u043e\u0432 \u0434\u043b\u044f iTunesConnect \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u044b\u0445 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0435\u0449\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0435\u0449\u0438 (\u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435 \u0435\u0441\u0442\u044c \u0432\u043d\u0443\u0442\u0440\u0438). \u0421\u0430\u043c \u0441\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043c\u0438\u043c\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0431\u0430\u0437\u0443 \u0441\u043e\u0437\u0434\u0430\u0435\u0442 \u043d\u0430 \u0434\u0438\u0441\u043a\u0435 \u0430\u0433\u0440\u0435\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0440\u0435\u0437 \u0434\u0430\u043d\u043d\u044b\u0445. \u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0445\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u043f\u0430\u043f\u043a\u0435 meta \u0432 \u0432\u0438\u0434\u0435 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u044b\u0445 php-\u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c, \u0434\u043b\u044f \u0432\u0435\u0431-\u0441\u043a\u0440\u0438\u043f\u0442\u0430 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0431\u0430\u0437\u0435 &#8212; \u0432\u043e\u0442 \u0442\u0430\u043a\u0430\u044f \u0443 \u043c\u0435\u043d\u044f \u043f\u0440\u0438\u0445\u043e\u0442\u044c. \u0412\u043e\u0442 <a title=\"iTunesConnect scraper \u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438\" href=\"http:\/\/hxml.me\/demo\/itc\" target=\"_blank\">\u043f\u0440\u0438\u043c\u0435\u0440<\/a> \u0442\u043e\u0433\u043e, \u043a\u0430\u043a \u044f \u043e\u0444\u043e\u0440\u043c\u0438\u043b \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e. \u0421\u043a\u0440\u0438\u043f\u0442 \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438\u0437 \u043f\u0430\u043f\u043a\u0438 meta.  \u043f\u0441. \u0421\u0435\u0439\u0447\u0430\u0441 \u043f\u043e\u0434\u0443\u043c\u044b\u0432\u0430\u044e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0432\u0441\u043b\u0435\u0434 \u043f\u0440\u043e\u0441\u0442\u0435\u043d\u044c\u043a\u043e\u0435 iOS-\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u044c\u0438\u0446\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0431\u0443\u0434\u0435\u0442 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0442\u044c \u0438\u0445. \u041d\u0435 \u043d\u0430\u0434\u043e \u0433\u043e\u0440\u043e\u0434\u0438\u0442\u044c \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u043f\u0430\u0440\u0441\u0438\u0438\u043d\u0433 \u043d\u0430 Objective-C. \u0415\u0441\u043b\u0438 \u0444\u0430\u043d\u0442\u0430\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u044e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0437\u0430 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0430\u043c\u0438 \u043b\u043e\u0433\u0438\u043d\u043e\u0432\/\u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u043c\u043d\u0435 \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u0434\u043e\u0431\u043d\u043e \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u043e \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0434\u043b\u044f \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u043e\u0432 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0438 \u0441\u0432\u043e\u0438\u0445 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0445, \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043f\u043e \u0440\u0430\u0431\u043e\u0442\u0435 \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u0435\u0449\u0435 \u0438 \u043c\u0435\u043d\u0435\u0434\u0436\u0435\u0440\u044b \u043f\u043e \u043f\u0440\u043e\u0434\u0430\u0436\u0430\u043c, \u0430 \u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043c \u0438\u043d\u0444\u0443 \u043f\u043e \u0441\u0432\u043e\u0438\u043c \u0434\u0435\u043b\u0430\u043c \u043c\u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0438 \u043a \u0447\u0435\u043c\u0443))<!--:--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I&#8217;ve faced the problem of populating different statistics from iTunesConnect portal. Mostly I was intrested in getting full downloading statistics. The iTunesConnect portal provides user with ability of viewing and downloading weekly sales reports only for last three monthes and daily reports only for last month which means the oldest stat is simply getting [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[60,47],"tags":[66,52,123,124],"class_list":["post-974","post","type-post","status-publish","format-standard","hentry","category-apple","category-coding","tag-itunes-connect","tag-php","tag-scraping","tag-grabbing"],"_links":{"self":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/974","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/comments?post=974"}],"version-history":[{"count":18,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/974\/revisions"}],"predecessor-version":[{"id":981,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/posts\/974\/revisions\/981"}],"wp:attachment":[{"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/media?parent=974"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/categories?post=974"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hxml.me\/blog\/wp-json\/wp\/v2\/tags?post=974"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}