Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dkxce authored Jan 13, 2022
0 parents commit b220cc2
Show file tree
Hide file tree
Showing 40 changed files with 4,069 additions and 0 deletions.
2,987 changes: 2,987 additions & 0 deletions InputBox.cs

Large diffs are not rendered by default.

679 changes: 679 additions & 0 deletions Program.cs

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TvilGrabber")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TvilGrabber")]
[assembly: AssemblyCopyright("")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2fdab367-f374-48b3-90e7-4f2dbf107199")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.2")]
[assembly: AssemblyFileVersion("1.0.0.2")]
59 changes: 59 additions & 0 deletions TvilGrabber.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{46AB5D4B-979B-422B-9116-44CEB2062323}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>TvilGrabber</RootNamespace>
<AssemblyName>TvilGrabber</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<ItemGroup>
<Reference Include="ICSharpCode.SharpZipLib, Version=0.85.5.452, Culture=neutral, processorArchitecture=MSIL" />
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" />
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="System.Web" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="InputBox.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="wGet.cs" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
20 changes: 20 additions & 0 deletions TvilGrabber.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TvilGrabber", "TvilGrabber.csproj", "{46AB5D4B-979B-422B-9116-44CEB2062323}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{46AB5D4B-979B-422B-9116-44CEB2062323}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{46AB5D4B-979B-422B-9116-44CEB2062323}.Debug|Any CPU.Build.0 = Debug|Any CPU
{46AB5D4B-979B-422B-9116-44CEB2062323}.Release|Any CPU.ActiveCfg = Release|Any CPU
{46AB5D4B-979B-422B-9116-44CEB2062323}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
Binary file added bin/Debug/ICSharpCode.SharpZipLib.dll
Binary file not shown.
Binary file added bin/Debug/Newtonsoft.Json.dll
Binary file not shown.
Binary file added bin/Debug/TvilGrabber.exe
Binary file not shown.
152 changes: 152 additions & 0 deletions bin/Debug/TvilGrabber.kml
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
<?xml version="1.0" encoding="UTF-8"?>
<kml>
<Document>
<name>TvilGrabber</name>
<createdby>TvilGrabber</createdby>
<Folder><name><![CDATA[Адыгея (Объектов: 11)]]></name>
<Placemark>
<styleUrl>#cat9</styleUrl>
<name><![CDATA["Даховская слобода" Туристический комплекс [706350]]]></name>
<description><![CDATA["Даховская слобода" Туристический комплекс [706350]
ID: 706350
Address: Майкоп, улица Мира 26А
Cat: 9
Url: https://tvil.ru/city/all/hotels/706350/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>40.204483,44.244183,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat5</styleUrl>
<name><![CDATA["Денница" База отдыха [851061]]]></name>
<description><![CDATA["Денница" База отдыха [851061]
ID: 851061
Address: Майкоп, Речная улица 17
Cat: 5
Url: https://tvil.ru/city/all/hotels/851061/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>40.205992,44.235385,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat5</styleUrl>
<name><![CDATA["Ахаус" База отдыха [1227411]]]></name>
<description><![CDATA["Ахаус" База отдыха [1227411]
ID: 1227411
Address: станица Даховская, Майкоп, Восточная улица 2
Cat: 5
Url: https://tvil.ru/city/all/hotels/1227411/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>40.207721,44.231449,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat2</styleUrl>
<name><![CDATA["Майкоп" Гостиница [854840]]]></name>
<description><![CDATA["Майкоп" Гостиница [854840]
ID: 854840
Address: Майкоп, Краснооктябрьская улица 17
Cat: 2
Url: https://tvil.ru/city/all/hotels/854840/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>40.103999,44.605516,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat12</styleUrl>
<name><![CDATA[Апартаменты на Береговой [1215580]]]></name>
<description><![CDATA[Апартаменты на Береговой [1215580]
ID: 1215580
Address: Новая Адыгея, Береговая улица 3к19, 36 кв.м.,
Note: аренда посуточно
Cat: 12
Url: https://tvil.ru/city/all/hotels/1215580/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>38.943801,45.02075,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat13</styleUrl>
<name><![CDATA[Сдается домик [402056]]]></name>
<description><![CDATA[Сдается домик [402056]
ID: 402056
Address: Гузерипль, Лесная 8, 60 кв.м.,
Note: аренда посуточно
Cat: 13
Url: https://tvil.ru/city/all/hotels/402056/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>40.134177,43.995542,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat10</styleUrl>
<name><![CDATA[Комфортная студия Мега Икеа парк [1204126]]]></name>
<description><![CDATA[Комфортная студия Мега Икеа парк [1204126]
ID: 1204126
Address: Новая Адыгея, Бжегокайская улица 25/8, 25 кв.м.,
Note: аренда посуточно
Cat: 10
Url: https://tvil.ru/city/all/hotels/1204126/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>38.922583,45.016971,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat1</styleUrl>
<name><![CDATA[1-комнатная квартира [1218167]]]></name>
<description><![CDATA[1-комнатная квартира [1218167]
ID: 1218167
Address: Новая Адыгея, Береговая 2/3, 42 кв.м.,
Note: аренда посуточно
Cat: 1
Url: https://tvil.ru/city/all/hotels/1218167/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>38.942929,45.020514,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat1</styleUrl>
<name><![CDATA[1-комнатная квартира [1218184]]]></name>
<description><![CDATA[1-комнатная квартира [1218184]
ID: 1218184
Address: Новая Адыгея, Бжегокайская 25/1, 33 кв.м.,
Note: аренда посуточно
Cat: 1
Url: https://tvil.ru/city/all/hotels/1218184/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>38.921364,45.019318,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat12</styleUrl>
<name><![CDATA[Стильные Апартаменты в ЖК Тургеневский [1218952]]]></name>
<description><![CDATA[Стильные Апартаменты в ЖК Тургеневский [1218952]
ID: 1218952
Address: Новая Адыгея, улица Тургеневское Шоссе 25/7О, 40 кв.м.,
Note: аренда посуточно
Cat: 12
Url: https://tvil.ru/city/all/hotels/1218952/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>38.935312,45.019316,0</coordinates></Point>
</Placemark>
<Placemark>
<styleUrl>#cat1</styleUrl>
<name><![CDATA[1-комнатная квартира [1221221]]]></name>
<description><![CDATA[1-комнатная квартира [1221221]
ID: 1221221
Address: Новая Адыгея, Майкопская улица 40, 30 кв.м.,
Note: аренда посуточно
Cat: 1
Url: https://tvil.ru/city/all/hotels/1221221/
Grabbed: 13.01.2022 by Tvil Grabber]]></description>
<Point><coordinates>38.941699,44.997885,0</coordinates></Point>
</Placemark>
</Folder>
<Style id="cat0"><IconStyle><Icon><href>images/cat0.png</href></Icon></IconStyle></Style>
<Style id="cat1"><IconStyle><Icon><href>images/cat1.png</href></Icon></IconStyle></Style>
<Style id="cat2"><IconStyle><Icon><href>images/cat2.png</href></Icon></IconStyle></Style>
<Style id="cat3"><IconStyle><Icon><href>images/cat3.png</href></Icon></IconStyle></Style>
<Style id="cat4"><IconStyle><Icon><href>images/cat4.png</href></Icon></IconStyle></Style>
<Style id="cat5"><IconStyle><Icon><href>images/cat5.png</href></Icon></IconStyle></Style>
<Style id="cat6"><IconStyle><Icon><href>images/cat6.png</href></Icon></IconStyle></Style>
<Style id="cat7"><IconStyle><Icon><href>images/cat7.png</href></Icon></IconStyle></Style>
<Style id="cat8"><IconStyle><Icon><href>images/cat8.png</href></Icon></IconStyle></Style>
<Style id="cat9"><IconStyle><Icon><href>images/cat9.png</href></Icon></IconStyle></Style>
<Style id="cat10"><IconStyle><Icon><href>images/cat10.png</href></Icon></IconStyle></Style>
<Style id="cat11"><IconStyle><Icon><href>images/cat11.png</href></Icon></IconStyle></Style>
<Style id="cat12"><IconStyle><Icon><href>images/cat12.png</href></Icon></IconStyle></Style>
<Style id="cat13"><IconStyle><Icon><href>images/cat13.png</href></Icon></IconStyle></Style>
<Style id="cat14"><IconStyle><Icon><href>images/cat14.png</href></Icon></IconStyle></Style>
</Document>
</kml>
Binary file added bin/Debug/TvilGrabber.kmz
Binary file not shown.
91 changes: 91 additions & 0 deletions bin/Debug/configuration.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<TvilGrabber xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<reg_url>https://api.tvil.ru/mapEntities?page[limit]=1&amp;filter[geo]={0}&amp;format[minify]=1</reg_url>
<reg_min>2</reg_min>
<reg_max>400</reg_max>
<reg_sleep>20</reg_sleep>
<objs_url>https://api.tvil.ru/mapEntities?page[limit]={0}&amp;filter[geo]={1}&amp;format[minify]=1</objs_url>
<objs_limit>15000</objs_limit>
<name_url>https://tvil.ru/city/all/hotels/{0}/</name_url>
<name_threads>1</name_threads>
<name_sleep>2000</name_sleep>
<regions>
<r id="6">Абхазия</r>
<r id="266">Адыгея</r>
<r id="300">Алтай</r>
<r id="267">Алтайский край</r>
<r id="268">Амурская область</r>
<r id="18">Армения</r>
<r id="269">Архангельская область</r>
<r id="270">Астраханская область</r>
<r id="271">Башкирия (Башкортостан)</r>
<r id="3">Беларусь</r>
<r id="272">Белгородская область</r>
<r id="28">Болгария</r>
<r id="273">Брянская область</r>
<r id="274">Бурятия</r>
<r id="328">Витебская область</r>
<r id="299">Владимирская область</r>
<r id="245">Волгоградская область</r>
<r id="246">Вологодская область</r>
<r id="247">Воронежская область</r>
<r id="331">Гродненская область</r>
<r id="61">Грузия</r>
<r id="250">Ивановская область</r>
<r id="251">Иркутская область</r>
<r id="252">Кабардино-Балкария</r>
<r id="4">Казахстан</r>
<r id="253">Калининградская область</r>
<r id="255">Калужская область</r>
<r id="220">Карачаево-Черкесия</r>
<r id="257">Карелия</r>
<r id="258">Кемеровская область</r>
<r id="259">Кировская область</r>
<r id="260">Коми</r>
<r id="261">Костромская область</r>
<r id="262">Краснодарский край</r>
<r id="263">Красноярский край</r>
<r id="306">Крым</r>
<r id="297">Курская область</r>
<r id="265">Ленинградская область</r>
<r id="230">Липецкая область</r>
<r id="232">Марий Эл</r>
<r id="326">Минская область</r>
<r id="330">Могилевская область</r>
<r id="264">Московская область</r>
<r id="234">Мурманская область</r>
<r id="235">Нижегородская область</r>
<r id="236">Новгородская область</r>
<r id="237">Новосибирская область</r>
<r id="305">Одесская область</r>
<r id="238">Омская область</r>
<r id="239">Оренбургская область</r>
<r id="240">Орловская область</r>
<r id="241">Пензенская область</r>
<r id="242">Пермский край</r>
<r id="243">Приморский край</r>
<r id="244">Псковская область</r>
<r id="296">Ростовская область</r>
<r id="295">Рязанская область</r>
<r id="294">Самарская область</r>
<r id="293">Саратовская область</r>
<r id="292">Саха (Якутия)</r>
<r id="290">Свердловская область</r>
<r id="289">Северная Осетия</r>
<r id="287">Ставропольский край</r>
<r id="286">Тамбовская область</r>
<r id="285">Татарстан</r>
<r id="284">Тверская область</r>
<r id="229">Томская область</r>
<r id="282">Тульская область</r>
<r id="228">Тюменская область</r>
<r id="2">Украина</r>
<r id="280">Ульяновская область</r>
<r id="225">Хабаровский край</r>
<r id="227">Ханты-Мансийский АО</r>
<r id="279">Челябинская область</r>
<r id="203">Черногория</r>
<r id="277">Чувашия</r>
<r id="275">Ярославская область</r>
</regions>
</TvilGrabber>
Binary file added bin/Debug/images/cat0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat13.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat14.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat8.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added bin/Debug/images/cat9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions bin/Debug/name.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Импорт объектов Tvil.ru
3 changes: 3 additions & 0 deletions bin/Debug/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
All is very simple
Plugin Must return fileName in last STDOUT line (or in single line)
if last STDOUT line (or single) is empty - file is not exists
Binary file added bin/Debug/wget.exe
Binary file not shown.
Binary file added bin/Debug/zlib.dll
Binary file not shown.
Binary file added obj/Debug/ResolveAssemblyReference.cache
Binary file not shown.
Binary file added obj/Debug/TvilGrabber.exe
Binary file not shown.
Binary file added obj/Debug/TvilGrabber.pdb
Binary file not shown.
Binary file added obj/Debug/avtodor_tr_m4.exe
Binary file not shown.
Binary file added obj/Debug/avtodor_tr_m4.pdb
Binary file not shown.
Binary file added obj/Release/avtodor_tr_m4.exe
Binary file not shown.
Binary file added obj/Release/avtodor_tr_m4.pdb
Binary file not shown.
5 changes: 5 additions & 0 deletions obj/TvilGrabber.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
D:\PROJECTS\Планирование\20XX Template\Soft (Win+Android)\MY KMZ KML TOOLS\KMZRebuilder+Viewer\_SOURCES\KMZTools_[Sources]_20220113H\PLUGIN_TvilGrabber_[Sources]_20220113H\bin\Debug\TvilGrabber.exe
D:\PROJECTS\Планирование\20XX Template\Soft (Win+Android)\MY KMZ KML TOOLS\KMZRebuilder+Viewer\_SOURCES\KMZTools_[Sources]_20220113H\PLUGIN_TvilGrabber_[Sources]_20220113H\bin\Debug\TvilGrabber.pdb
D:\PROJECTS\Планирование\20XX Template\Soft (Win+Android)\MY KMZ KML TOOLS\KMZRebuilder+Viewer\_SOURCES\KMZTools_[Sources]_20220113H\PLUGIN_TvilGrabber_[Sources]_20220113H\obj\Debug\ResolveAssemblyReference.cache
D:\PROJECTS\Планирование\20XX Template\Soft (Win+Android)\MY KMZ KML TOOLS\KMZRebuilder+Viewer\_SOURCES\KMZTools_[Sources]_20220113H\PLUGIN_TvilGrabber_[Sources]_20220113H\obj\Debug\TvilGrabber.exe
D:\PROJECTS\Планирование\20XX Template\Soft (Win+Android)\MY KMZ KML TOOLS\KMZRebuilder+Viewer\_SOURCES\KMZTools_[Sources]_20220113H\PLUGIN_TvilGrabber_[Sources]_20220113H\obj\Debug\TvilGrabber.pdb
Loading

0 comments on commit b220cc2

Please sign in to comment.