├── .gitignore ├── LICENSE ├── README.md ├── convert.py ├── modify.py ├── modify_v2.py ├── result └── README.md ├── sw.csv ├── 中国行政编码数据.json ├── 中国行政编码数据.py ├── 全国普通高等学校名单 ├── 全国普通高等学校名单.csv ├── 全国普通高等学校名单.json ├── 全国普通高等学校名单.py └── 全国普通高等学校名单.xls ├── 国民经济行业分类 ├── 国民经济行业分类.pdf ├── 国民经济行业分类_2011.json ├── 国民经济行业分类_2017.html ├── 国民经济行业分类_2017.json ├── 国民经济行业分类_2017.txt ├── 国民经济行业分类_2017_prettify.html └── 国民经济行业分类check.py ├── 申银万国行业分类标准.json └── 申银万国行业分类标准.pdf /.gitignore: -------------------------------------------------------------------------------- 1 | 2 | result/* 3 | *.xlsx 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #### Xiang Wang @ 2018-01-05 10:40:29 2 | 3 | 4 | # Introduction/简介 5 | Here is some standardized classification data of Shenyin&Wanguo classification data. 6 | 这里是一些格式化的数据。 7 | 8 | 9 | # 数据类型 10 | 1. 申万 申银万国 申万行业分类 申银万国行业分类 11 | * 数据来源: [申银万国官网](http://www.swsindex.com/idx0530.aspx) 12 | 2. 中国地理信息编码 中国行政区划 中国行政规划数据 13 | * 数据来源; [Administrative-divisions-of-China](https://github.com/modood/Administrative-divisions-of-China) 14 | 3. 中国行业分类数据 15 | * ~~数据来源: [中华人民共和国国家统计局](http://www.stats.gov.cn/tjsj/tjbz/201709/t20170929_1539288.html)~~ 16 | * 数据来源: [StandardIndustrialClassificationCodes](https://github.com/EarlYan/StandardIndustrialClassificationCodes) 17 | 4. 全国普通高等学校名单 18 | * 数据来源: [中国人民共和国教育部](http://www.moe.gov.cn/srcsite/A03/moe_634/201706/t20170614_306900.html) 19 | > 截至2017年5月31日,全国高等学校共计2914所,其中:普通高等学校2631所(含独立学院265所),成人高等学校283所。 20 | * [原始数据.excel](./全国普通高等学校名单/全国普通高等学校名单.xls) 21 | * [处理好的json数据](./全国普通高等学校名单/全国普通高等学校名单.json) 22 | * [处理脚本](./全国普通高等学校名单/全国普通高等学校名单.py) 23 | 24 | 25 | # 使用,请安装python3 26 | 1. [安装python3](https://www.python.org/downloads/) 27 | 2. 运行以下代码 28 | ```python 29 | python convert.py 30 | ``` 31 | 32 | # 更新 33 | * 2018-01-09 添加了行政区划数据和行业分类数据 34 | * 2018-01-05 把数据导出成嵌套的json格式,方便前端和后端使用。 35 | 36 | # TODO 37 | 整理出2017年的国民经济行业分类数据 38 | 39 | # 版权 40 | 本项目采用GPL协议。如果你更改了此项目的代码用于自己的项目,请开源你更改的代码 41 | -------------------------------------------------------------------------------- /convert.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # Xiang Wang @ 2017-12-19 15:44:29 4 | 5 | import pprint 6 | import csv 7 | import re 8 | import json 9 | from collections import OrderedDict 10 | 11 | 12 | file_name = 'sw.csv' 13 | 14 | 15 | class Industry(object): 16 | """代表了行业的类""" 17 | def __init__(self, name, code, parent=None, index_code=None): 18 | self.name = name.strip() 19 | self.code = str(code) 20 | self.parent = parent 21 | self.children = [] 22 | self.index_code = index_code 23 | 24 | def has_child(self, industry): 25 | """self的children里面是存在code和industry的code一致的元素""" 26 | for i in self.children: 27 | if i == industry: 28 | return True 29 | else: 30 | return False 31 | 32 | def has_generation(self, industry): 33 | """self的children, children的children里面是否存在和industry的code一致的元素""" 34 | pass 35 | 36 | def code_without_zero(self): 37 | return re.sub("(00)*$", "", self.code) 38 | 39 | def contains(self, industry): 40 | """判断一个industry是否属于self""" 41 | return industry.code_without_zero() != self.code_without_zero() and \ 42 | industry.code_without_zero().startswith(self.code_without_zero()) 43 | 44 | def contains_directly(self, industry): 45 | """判断一个industry是不是直接隶属于self""" 46 | if not self.contains(industry): 47 | return False 48 | return len(industry.code_without_zero()) - len(self.code_without_zero()) == 2 49 | 50 | def get_next_level(self, industry): 51 | """返回self的children里面是industry的组辈的那个元素""" 52 | for i in self.children: 53 | if i.contains(industry): 54 | return i 55 | return None 56 | 57 | def get_next_level_of_industry(self, industry): 58 | """返回industry的父辈们,哪个应该是直接隶属于self的""" 59 | assert self.contains(industry) 60 | while True: 61 | if industry.parent == self: 62 | return industry 63 | else: 64 | return self.get_next_level_of_industry(industry.parent) 65 | 66 | def insert(self, industry): 67 | """把industry加入到self的children或者children的children里面""" 68 | print("把%s加入%s" % (industry, self)) 69 | assert self.contains(industry) 70 | if self.contains_directly(industry): 71 | if self.has_child(industry): 72 | pass 73 | else: 74 | print("把%s加入%s的children"%(industry, self)) 75 | industry.parent = self # 有待商榷,内存泄露 76 | self.children.append(industry) 77 | else: 78 | next_level = self.get_next_level(industry) 79 | if next_level: 80 | next_level.insert(industry) 81 | for child in self.children: 82 | if child.contains(industry): 83 | child.insert(industry) 84 | break 85 | else: 86 | raise Exception("没有这个元素,你怎么添加了呢") 87 | 88 | @property 89 | def ancestor(self): 90 | if self.parent: 91 | return self.parent.ancestor 92 | else: 93 | return self 94 | 95 | def to_dict(self): 96 | """返回dict格式""" 97 | return {} 98 | 99 | def __str__(self): 100 | return self.name 101 | 102 | def __eq__(self, industry): 103 | return self.code == industry.code 104 | 105 | def to_dict(self): 106 | return { 107 | 'code': self.code, 108 | 'name': self.name, 109 | 'index_code': self.index_code, 110 | 'children': list(map(lambda x: x.to_dict(), self.children)) 111 | } 112 | 113 | 114 | def main(): 115 | """把文件里面的csv格式转变成嵌套的json格式""" 116 | result = [] 117 | reader = csv.DictReader(open(file_name), delimiter=' ') 118 | print(reader.fieldnames) 119 | industry_list = list(map( 120 | lambda x: Industry(name=x['name'], code=x['code'], index_code=x['index_code']), 121 | reader)) 122 | # 添加一级行业 123 | for index, industry in enumerate(industry_list): 124 | if industry.code[-4:] == '0000': 125 | result.append(industry) 126 | # 添加二级行业 127 | for index, industry in enumerate(industry_list): 128 | if industry.code[-4:] != '0000': 129 | for i in result: 130 | if i.contains(industry): 131 | i.insert(industry) 132 | break 133 | else: 134 | raise Exception("报错") 135 | return result 136 | 137 | 138 | if __name__ == '__main__': 139 | print("====starts=====") 140 | for index, i in enumerate(main()): 141 | pprint.pprint(i.to_dict(), indent=4) 142 | data = [] 143 | for i in main(): 144 | data.append(i.to_dict()) 145 | with open('result/result.json', 'w') as f: 146 | json.dump(data, f, indent=4, ensure_ascii=False) 147 | print("===end===") 148 | -------------------------------------------------------------------------------- /modify.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # Xiang Wang @ 2018-01-17 10:46:13 4 | 5 | 6 | import re 7 | from bs4 import BeautifulSoup 8 | from openpyxl import Workbook 9 | 10 | file_path = "国民经济行业分类_2017_prettify.html" 11 | soup = BeautifulSoup(open(file_path).read(), 'html.parser') 12 | body = soup.body 13 | nodes = list(filter(lambda x: x!='\n', body.children)) 14 | top_values = set() 15 | left_values = set() 16 | 17 | 18 | class Style(object): 19 | def __init__(self, data): 20 | self._data = {} 21 | for key, value in data.items(): 22 | if value[-2:] == 'px': 23 | self._data[key] = int(value[0:-2]) 24 | else: 25 | self._data[key] = value 26 | @classmethod 27 | def from_text(cls, text): 28 | """返回一个 Style 的类""" 29 | attrs = re.split(r'; *', text.strip()) 30 | data = {} 31 | for attr in attrs: 32 | if re.match(r'^\s*$', attr): 33 | continue 34 | key, value = re.split(r': *', attr) 35 | data[key] = value 36 | return cls(data) 37 | 38 | 39 | class Cell(object): 40 | def __init__(self, style, text): 41 | self.text = text 42 | self.style = style 43 | self.top = None 44 | self.left = None 45 | 46 | 47 | cells = [] 48 | for node in nodes: 49 | try: 50 | assert node.name == 'div' 51 | assert node.span.text.strip() 52 | style = Style.from_text(node['style']) 53 | cell = Cell(text=node.span.text.strip(), style=style) 54 | top_values.add(cell.style._data['top']) 55 | left_values.add(cell.style._data['left']) 56 | cells.append(cell) 57 | except Exception as e: 58 | raise e 59 | print(e) 60 | print(node) 61 | break 62 | 63 | 64 | left_value_index = {} # 135:1 偏移135像素的是第零个格子 65 | for index, value in enumerate(sorted(left_values)): 66 | left_value_index[value] = index 67 | top_value_index = {} 68 | for index, value in enumerate(sorted(top_values)): 69 | top_value_index[value] = index 70 | for cell in cells: 71 | cell.top = top_value_index[cell.style._data['top']] 72 | cell.left = left_value_index[cell.style._data['left']] 73 | 74 | 75 | import csv 76 | from openpyxl import Workbook 77 | 78 | wb = Workbook() 79 | ws = wb.get_active_sheet() 80 | for cell in cells: 81 | ws.cell(row=int(cell.top)+1, column=int(cell.left)+1, value=cell.text) 82 | wb.save('国民经济行业分类.xlsx') 83 | -------------------------------------------------------------------------------- /modify_v2.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # Xiang Wang @ 2018-01-17 18:20:56 4 | 5 | 6 | """ 7 | 第一列: 门类 大类 中类 小类 8 | """ 9 | from openpyxl import Workbook, load_workbook 10 | import re 11 | 12 | 13 | wb = load_workbook('国民经济行业分类_v2.xlsx') 14 | ws = wb.get_active_sheet() 15 | matrix = [] 16 | for row_num, row in enumerate(ws.rows): 17 | matrix.append([]) 18 | has_value = False 19 | for column, cell in enumerate(row): 20 | if cell.value: 21 | has_value = True 22 | matrix[row_num].append(cell.value) 23 | if has_value is False: # 保证每一行都有数据 24 | raise Exception 25 | 26 | 27 | class Category(object): 28 | 29 | def __init__(self, code, name, parent=None): 30 | self.code = code 31 | self.name = name 32 | self.parent = parent 33 | self.children = [] 34 | 35 | def to_dict(self): 36 | data = { 37 | 'code': self.code, 38 | 'name': self.name, 39 | 'children': [] 40 | } 41 | for child in self.children: 42 | data['children'].append(child.to_dict()) 43 | return data 44 | 45 | def count(*args): 46 | return len(list(filter(lambda x: x, args))) 47 | 48 | 49 | def get_value(*args): 50 | assert count(*args) == 1 51 | return list(filter(lambda x: x, args))[0] 52 | 53 | 54 | categories = [] 55 | 56 | 57 | def has_code(i): 58 | """是否存在code""" 59 | return count(i[3], i[4], i[5], i[6], i[7]) >= 1 60 | 61 | num_code = '0' 62 | 63 | for index, i in enumerate(matrix): 64 | if i[0] != '门类 大类 中类 小类' and i[0]: # 标题 (门类,大类,中类,小类) 65 | print(i[0]) 66 | print(index) 67 | assert count(*i) == 1 68 | if i[1]: # 门类 69 | assert re.match(r'^[A-T]$', i[1]) 70 | if not i[8]: 71 | assert i[9] 72 | else: 73 | assert not i[9] 74 | code = i[1] 75 | name = get_value(i[8], i[9]) 76 | category_men = Category(code=code, name=name) 77 | categories.append(category_men) 78 | assert not i[2] 79 | if count(i[3], i[4], i[5], i[6], i[7]) > 1: 80 | if i[6] and i[7] and count(i[3], i[4], i[5], i[6], i[7]) == 2: 81 | pass # 中类和小类一个名字 82 | elif i[5] and i[7] and count(i[3], i[4], i[5], i[6], i[7]) == 2: 83 | pass # 中类和小类一个名字 84 | else: 85 | print("code很多") 86 | print(index) 87 | elif count(i[3], i[5], i[6], i[7]) == 1: 88 | new_num_code = get_value(i[3], i[5], i[6], i[7]) 89 | if not new_num_code > num_code: 90 | print("新编码 %s" % new_num_code) 91 | print("旧编码 %s" % num_code) 92 | print(index) 93 | num_code = new_num_code 94 | if count(i[8], i[9], i[10], i[11], i[12]) > 1: 95 | print("Name很多") 96 | print(index) 97 | if i[3]: # 大类 98 | assert re.match(r'^\d{2}$', i[3]) 99 | code = i[3] 100 | name = get_value(i[8], i[9], i[10], i[11], i[12]) 101 | category_da = Category(code=code, name=name, parent=category_men) 102 | category_men.children.append(category_da) 103 | if i[4]: # 标题(代码) 104 | assert i[4] == '代 码' 105 | if i[5]: # 中类 106 | assert re.match(r'^\d{3}$', i[5]) 107 | assert i[9] 108 | code = i[5] 109 | name = get_value(i[8], i[9], i[10], i[11], i[12]) 110 | category_zhong = Category(code=code, name=name, parent=category_da) 111 | category_da.children.append(category_zhong) 112 | if i[7]: 113 | category_xiao = Category(code=i[7], name=name, parent=category_zhong) 114 | category_zhong.children.append(category_xiao) 115 | if i[6]: # 中类 116 | assert re.match(r'^\d{3}$', i[6]) 117 | if not count(i[9], i[10]) == 1: 118 | print(index) 119 | code = i[6] 120 | name = get_value(i[8], i[9], i[10], i[11], i[12]) 121 | category_zhong = Category(code=code, name=name, parent=category_da) 122 | category_da.children.append(category_zhong) 123 | if i[7]: 124 | category_xiao = Category(code=i[7], name=name, parent=category_zhong) 125 | category_zhong.children.append(category_xiao) 126 | if i[7]: # 小类 127 | assert re.match(r'^\d{4}$', i[7]) 128 | if not count(i[9], i[10], i[11], i[12]) == 1: 129 | print(index) 130 | print(i) 131 | if i[7]: 132 | if i[5] or i[6]: 133 | pass 134 | else: 135 | name = get_value(i[8], i[9], i[10], i[11], i[12]) 136 | category_xiao = Category(code=i[7], name=name, parent=category_zhong) 137 | category_zhong.children.append(category_xiao) 138 | if i[8]: # 门类名称 139 | pass 140 | if i[9]: # 门类大类中类小类名称 141 | pass 142 | if i[10]: # 大类中类小类名称 143 | pass 144 | if i[11]: # 大类中类小类名称 145 | pass 146 | if i[12]: # 大类中类小类名称 147 | pass 148 | if i[13]: 149 | assert i[13] == '表 1 国民经济行业分类和代码' 150 | if i[14]: 151 | assert i[14] == '类 别 名 称' 152 | if i[15]: # 注释 153 | pass 154 | if i[16]: 155 | pass 156 | if i[17]: 157 | assert i[17] == '说 明' 158 | if i[18]: # 页码 159 | assert re.match(r'^\d{2}$', i[18]) 160 | if i[19]: # 页码 161 | assert re.match(r'^\d{1}$', i[19]) 162 | 163 | 164 | results = [] 165 | for category in categories: 166 | results.append(category.to_dict()) 167 | 168 | import json 169 | with open('results.json', 'w') as f: 170 | json.dump(results, f, indent=4, ensure_ascii=False) 171 | -------------------------------------------------------------------------------- /result/README.md: -------------------------------------------------------------------------------- 1 | #### Xiang Wang @ 2018-01-05 11:34:10 2 | 3 | 4 | # 这里用来存放处理好的数据,由于数据不断地变动,所以结果不会直接放在git仓库,而是放在release里面 5 | -------------------------------------------------------------------------------- /sw.csv: -------------------------------------------------------------------------------- 1 | code name index_code 2 | 210000 采掘 801020 3 | 210100 石油开采 801023 4 | 210101 石油开采 850211 5 | 210200 煤炭开采 801021 6 | 210201 煤炭开采 850221 7 | 210202 焦炭加工 850222 8 | 210300 其他采掘 801022 9 | 210301 其他采掘 850231 10 | 210400 采掘服务 801024 11 | 210401 油气钻采服务 850241 12 | 210402 其他采掘服务 850242 13 | 220000 化工 801030 14 | 220100 石油化工 801035 15 | 220101 石油加工 850311 16 | 220103 石油贸易 850313 17 | 220200 化学原料 801033 18 | 220201 纯碱 850321 19 | 220202 氯碱 850322 20 | 220203 无机盐 850323 21 | 220204 其他化学原料 850324 22 | 220300 化学制品 801034 23 | 220301 氮肥 850331 24 | 220302 磷肥 850332 25 | 220306 钾肥 850336 26 | 220310 复合肥 850381 27 | 220303 农药 850333 28 | 220304 日用化学产品 850334 29 | 220305 涂料油漆油墨制造 850335 30 | 220307 民爆用品 850337 31 | 220308 纺织化学用品 850338 32 | 220311 氟化工及制冷剂 850382 33 | 220312 磷化工及磷酸盐 850383 34 | 220313 聚氨酯 850372 35 | 220314 玻纤 850373 36 | 220309 其他化学制品 850339 37 | 220400 化学纤维 801032 38 | 220401 涤纶 850341 39 | 220402 维纶 850342 40 | 220403 粘胶 850343 41 | 220405 氨纶 850345 42 | 220404 其他纤维 850344 43 | 220500 塑料 801036 44 | 220502 合成革 850352 45 | 220503 改性塑料 850353 46 | 220501 其他塑料制品 850351 47 | 220600 橡胶 801037 48 | 220601 轮胎 850361 49 | 220602 其他橡胶制品 850362 50 | 220603 炭黑 850363 51 | 230000 钢铁 801040 52 | 230100 钢铁 801041 53 | 230101 普钢 850411 54 | 230102 特钢 850412 55 | 240000 有色金属 801050 56 | 240300 工业金属 801055 57 | 240301 铝 850551 58 | 240302 铜 850552 59 | 240303 铅锌 850553 60 | 240400 黄金 801053 61 | 240401 黄金 850531 62 | 240500 稀有金属 801054 63 | 240501 稀土 850541 64 | 240502 钨 850542 65 | 240503 锂 850543 66 | 240504 其他稀有小金属 850544 67 | 240200 金属非金属新材料 801051 68 | 240201 金属新材料 850521 69 | 240202 磁性材料 850522 70 | 240203 非金属新材料 850523 71 | 610000 建筑材料 801710 72 | 610100 水泥制造 801711 73 | 610101 水泥制造 850612 74 | 610200 玻璃制造 801712 75 | 610201 玻璃制造 850611 76 | 610300 其他建材 801713 77 | 610301 耐火材料 850615 78 | 610302 管材 850616 79 | 610303 其他建材 850614 80 | 620000 建筑装饰 801720 81 | 620100 房屋建设 801721 82 | 620101 房屋建设 850623 83 | 620200 装修装饰 801722 84 | 620201 装修装饰 857221 85 | 620300 基础建设 801723 86 | 620301 城轨建设 857231 87 | 620302 路桥施工 857232 88 | 620303 水利工程 857233 89 | 620304 铁路建设 857234 90 | 620305 其他基础建设 857235 91 | 620400 专业工程 801724 92 | 620401 钢结构 857241 93 | 620402 化学工程 857242 94 | 620403 国际工程承包 857243 95 | 620404 其他专业工程 857244 96 | 620500 园林工程 801725 97 | 620501 园林工程 857251 98 | 630000 电气设备 801730 99 | 630100 电机 801731 100 | 630101 电机 850741 101 | 630200 电气自动化设备 801732 102 | 630201 电网自动化 857321 103 | 630202 工控自动化 857322 104 | 630203 计量仪表 857323 105 | 630300 电源设备 801733 106 | 630301 综合电力设备商 857331 107 | 630302 风电设备 857332 108 | 630303 光伏设备 857333 109 | 630304 火电设备 857334 110 | 630305 储能设备 857335 111 | 630306 其它电源设备 857336 112 | 630400 高低压设备 801734 113 | 630401 高压设备 857341 114 | 630402 中压设备 857342 115 | 630403 低压设备 857343 116 | 630404 线缆部件及其他 857344 117 | 640000 机械设备 801890 118 | 640100 通用机械 801072 119 | 640101 机床工具 850711 120 | 640102 机械基础件 850712 121 | 640103 磨具磨料 850713 122 | 640104 内燃机 850714 123 | 640105 制冷空调设备 850715 124 | 640106 其它通用机械 850716 125 | 640200 专用设备 801074 126 | 640201 工程机械 850722 127 | 640202 重型机械 850724 128 | 640203 冶金矿采化工设备 850725 129 | 640204 楼宇设备 850728 130 | 640205 环保设备 850729 131 | 640206 纺织服装设备 850721 132 | 640207 农用机械 850723 133 | 640208 印刷包装机械 850726 134 | 640209 其它专用机械 850727 135 | 640300 仪器仪表 801073 136 | 640301 仪器仪表 850731 137 | 640400 金属制品 801075 138 | 640401 金属制品 850751 139 | 640500 运输设备 801076 140 | 640501 铁路设备 850936 141 | 650000 国防军工 801740 142 | 650100 航天装备 801741 143 | 650101 航天装备 857411 144 | 650200 航空装备 801742 145 | 650201 航空装备 857421 146 | 650300 地面兵装 801743 147 | 650301 地面兵装 857431 148 | 650400 船舶制造 801744 149 | 650401 船舶制造 850935 150 | 280000 汽车 801880 151 | 280100 汽车整车 801094 152 | 280101 乘用车 850911 153 | 280102 商用载货车 850912 154 | 280103 商用载客车 850913 155 | 280200 汽车零部件 801093 156 | 280201 汽车零部件 850921 157 | 280300 汽车服务 801092 158 | 280301 汽车服务 850941 159 | 280400 其他交运设备 801881 160 | 280401 其他交运设备 858811 161 | 330000 家用电器 801110 162 | 330100 白色家电 801111 163 | 330101 冰箱 851111 164 | 330102 空调 851112 165 | 330103 洗衣机 851113 166 | 330104 小家电 851114 167 | 330105 家电零部件 851115 168 | 330200 视听器材 801112 169 | 330201 彩电 851121 170 | 330202 其它视听器材 851122 171 | 360000 轻工制造 801140 172 | 360100 造纸 801143 173 | 360101 造纸 851411 174 | 360200 包装印刷 801141 175 | 360201 包装印刷 851421 176 | 360300 家用轻工 801142 177 | 360302 家具 851432 178 | 360303 其他家用轻工 851433 179 | 360304 珠宝首饰 851434 180 | 360305 文娱用品 851435 181 | 360400 其他轻工制造 801144 182 | 360401 其他轻工制造 851441 183 | 110000 农林牧渔 801010 184 | 110100 种植业 801016 185 | 110101 种子生产 850111 186 | 110102 粮食种植 850112 187 | 110103 其他种植业 850113 188 | 110200 渔业 801015 189 | 110201 海洋捕捞 850121 190 | 110202 水产养殖 850122 191 | 110300 林业 801011 192 | 110301 林业 850131 193 | 110400 饲料 801014 194 | 110401 饲料 850141 195 | 110500 农产品加工 801012 196 | 110501 果蔬加工 850151 197 | 110502 粮油加工 850152 198 | 110504 其他农产品加工 850154 199 | 110600 农业综合 801013 200 | 110601 农业综合 850161 201 | 110700 畜禽养殖 801017 202 | 110701 畜禽养殖 850171 203 | 110800 动物保健 801018 204 | 110801 动物保健 850181 205 | 340000 食品饮料 801120 206 | 340300 饮料制造 801123 207 | 340301 白酒 851231 208 | 340302 啤酒 851232 209 | 340303 其他酒类 851233 210 | 340304 软饮料 851234 211 | 340305 葡萄酒 851235 212 | 340306 黄酒 851236 213 | 340400 食品加工 801124 214 | 340401 肉制品 851241 215 | 340402 调味发酵品 851242 216 | 340403 乳品 851243 217 | 340404 食品综合 851244 218 | 350000 纺织服装 801130 219 | 350100 纺织制造 801131 220 | 350101 毛纺 851311 221 | 350102 棉纺 851312 222 | 350103 丝绸 851313 223 | 350104 印染 851314 224 | 350105 辅料 851315 225 | 350106 其他纺织 851316 226 | 350200 服装家纺 801132 227 | 350202 男装 851322 228 | 350203 女装 851323 229 | 350204 休闲服装 851324 230 | 350205 鞋帽 851325 231 | 350206 家纺 851326 232 | 350207 其他服装 851327 233 | 370000 医药生物 801150 234 | 370100 化学制药 801151 235 | 370101 化学原料药 851511 236 | 370102 化学制剂 851512 237 | 370200 中药 801155 238 | 370201 中药 851521 239 | 370300 生物制品 801152 240 | 370301 生物制品 851531 241 | 370400 医药商业 801154 242 | 370401 医药商业 851541 243 | 370500 医疗器械 801153 244 | 370501 医疗器械 851551 245 | 370600 医疗服务 801156 246 | 370601 医疗服务 851561 247 | 450000 商业贸易 801200 248 | 450300 一般零售 801203 249 | 450301 百货 852031 250 | 450302 超市 852032 251 | 450303 多业态零售 852033 252 | 450400 专业零售 801204 253 | 450401 专业连锁 852041 254 | 450500 商业物业经营 801205 255 | 450501 一般物业经营 852051 256 | 450502 专业市场 852052 257 | 450200 贸易 801202 258 | 450201 贸易 852021 259 | 460000 休闲服务 801210 260 | 460100 景点 801212 261 | 460101 人工景点 852111 262 | 460102 自然景点 852112 263 | 460200 酒店 801213 264 | 460201 酒店 852121 265 | 460300 旅游综合 801214 266 | 460301 旅游综合 852131 267 | 460400 餐饮 801211 268 | 460401 餐饮 852141 269 | 460500 其他休闲服务 801215 270 | 460501 其他休闲服务 852151 271 | 270000 电子 801080 272 | 270100 半导体 801081 273 | 270101 集成电路 850811 274 | 270102 分立器件 850812 275 | 270103 半导体材料 850813 276 | 270200 元件 801083 277 | 270202 印制电路板 850822 278 | 270203 被动元件 850823 279 | 270300 光学光电子 801084 280 | 270301 显示器件 850831 281 | 270302 LED 850832 282 | 270303 光学元件 850833 283 | 270500 电子制造 801085 284 | 270501 电子系统组装 850851 285 | 270502 电子零部件制造 850852 286 | 270400 其他电子 801082 287 | 270401 其他电子 850841 288 | 710000 计算机 801750 289 | 710100 计算机设备 801101 290 | 710101 计算机设备 851021 291 | 710200 计算机应用 801222 292 | 710201 软件开发 852225 293 | 710202 IT服务 852226 294 | 720000 传媒 801760 295 | 720100 文化传媒 801761 296 | 720101 平面媒体 852241 297 | 720102 影视动漫 852242 298 | 720103 有线电视网络 852224 299 | 720104 其他文化传媒 852244 300 | 720200 营销传播 801751 301 | 720201 营销服务 852243 302 | 720300 互联网传媒 801752 303 | 720301 互联网信息服务 852221 304 | 720302 移动互联网服务 852222 305 | 720303 其他互联网服务 852223 306 | 730000 通信 801770 307 | 730100 通信运营 801223 308 | 730101 通信运营 852211 309 | 730200 通信设备 801102 310 | 730201 终端设备 851012 311 | 730202 通信传输设备 851013 312 | 730203 通信配套服务 851014 313 | 410000 公用事业 801160 314 | 410100 电力 801161 315 | 410101 火电 851611 316 | 410102 水电 851612 317 | 410103 燃机发电 851613 318 | 410104 热电 851614 319 | 410105 新能源发电 851615 320 | 410200 水务 801164 321 | 410201 水务 851621 322 | 410300 燃气 801163 323 | 410301 燃气 851631 324 | 410400 环保工程及服务 801162 325 | 410401 环保工程及服务 851641 326 | 420000 交通运输 801170 327 | 420100 港口 801171 328 | 420101 港口 851711 329 | 420200 高速公路 801175 330 | 420201 高速公路 851731 331 | 420300 公交 801172 332 | 420301 公交 851721 333 | 420400 航空运输 801173 334 | 420401 航空运输 851741 335 | 420500 机场 801174 336 | 420501 机场 851751 337 | 420600 航运 801176 338 | 420601 航运 851761 339 | 420700 铁路运输 801177 340 | 420701 铁路运输 851771 341 | 420800 物流 801178 342 | 420801 物流 851781 343 | 430000 房地产 801180 344 | 430100 房地产开发 801181 345 | 430101 房地产开发 851811 346 | 430200 园区开发 801182 347 | 430201 园区开发 851821 348 | 480000 银行 801780 349 | 480100 银行 801192 350 | 480101 银行 851911 351 | 490000 非银金融 801790 352 | 490100 证券 801193 353 | 490101 证券 851931 354 | 490200 保险 801194 355 | 490201 保险 851941 356 | 490300 多元金融 801191 357 | 490301 多元金融 851921 358 | 510000 综合 801230 359 | 510100 综合 801231 360 | 510101 综合 852311 361 | -------------------------------------------------------------------------------- /中国行政编码数据.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # Xiang Wang @ 2018-10-08 14:42:54 4 | 5 | 6 | import json 7 | 8 | 9 | origin_data = json.load(open('中国行政编码数据.json')) 10 | 11 | provinces = [] 12 | cities = [] # 地级市 13 | countries = [] # 县级市 14 | 15 | location_names = set() 16 | 17 | for province in origin_data: 18 | assert province['name'] not in provinces 19 | assert province['name'] not in location_names 20 | provinces.append(province['name']) 21 | location_names.add(province['name']) 22 | for city in province['childs']: 23 | if city["name"] in ("市辖区", "省直辖县级行政区划"): # 四个直辖市都叫市辖区, 有四个省有这个省直辖县级行政区划 24 | pass 25 | else: 26 | assert city["name"] not in cities 27 | assert city["name"] not in location_names 28 | cities.append(city["name"]) 29 | location_names.add(city["name"]) 30 | for country in city["childs"]: 31 | try: 32 | assert country["name"] not in countries 33 | assert country["name"] not in location_names 34 | countries.append(country["name"]) 35 | location_names.add(country["name"]) 36 | except: 37 | print(country["name"]) # 有几个县级市有重复的。 38 | 39 | 40 | print("中国的省份有:{}, 共计{}个".format(provinces, len(provinces))) 41 | print("中国的地级市有(不包含省直辖县级行政区划, 市辖区):{}, 共计{}个".format(cities, len(cities))) 42 | -------------------------------------------------------------------------------- /全国普通高等学校名单/全国普通高等学校名单.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # Xiang Wang @ 2018-08-08 10:43:58 4 | 5 | 6 | import csv 7 | import json 8 | import re 9 | 10 | result = { 11 | "北京市": [ ], 12 | } 13 | 14 | count_dict = { 15 | } 16 | with open('全国普通高等学校名单.csv', 'r') as csvfile: 17 | for i in range(3): # 去掉前面3行多余数据 18 | csvfile.readline() 19 | fieldnames = ['序号', '学校名称', '学校标识码', '主管部门', '所在地', '办学层次', '备注'] 20 | reader = csv.DictReader(csvfile) 21 | print(reader.fieldnames) 22 | for row in reader: 23 | if row["学校名称"] == "": 24 | province_name, count = re.match(r'^(.*)((\d+)所)$', row["序号"]).groups() 25 | count = int(count) 26 | count_dict[province_name] = count 27 | print("当前处理到的省份为: {}".format(province_name)) 28 | print(row) 29 | result[province_name] = [] 30 | else: 31 | result[province_name].append(row) 32 | 33 | for key, value in count_dict.items(): 34 | assert len(result[key]) == value 35 | with open('全国普通高等学校名单.json', 'w') as f: 36 | f.write(json.dumps(result, indent=4, ensure_ascii=False)) 37 | -------------------------------------------------------------------------------- /全国普通高等学校名单/全国普通高等学校名单.xls: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramwin/china-public-data/558effa78547d3e212d95be4f3e1c43bf85422ec/全国普通高等学校名单/全国普通高等学校名单.xls -------------------------------------------------------------------------------- /国民经济行业分类/国民经济行业分类.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramwin/china-public-data/558effa78547d3e212d95be4f3e1c43bf85422ec/国民经济行业分类/国民经济行业分类.pdf -------------------------------------------------------------------------------- /国民经济行业分类/国民经济行业分类check.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | # -*- coding: utf-8 -*- 3 | # Xiang Wang @ 2018-01-16 18:11:43 4 | 5 | 6 | import re 7 | 8 | 9 | f = open("国民经济行业分类_2017.txt") 10 | line = True 11 | index = 0 12 | current_menlei = {} 13 | current_dalei = {} 14 | current_zhonglei = {} 15 | current_xiaolei = {} 16 | while line: 17 | line = f.readline(); index += 1 18 | # print("当前处理: %s" % line) 19 | # 普通的注释行 20 | if re.match( 21 | r'(^代 码\n$)|' 22 | r'(^门类 大类 中类 小类\n$)|' 23 | r'(^类 别 名 称\n$)|' 24 | r'(^说 明\n$)' 25 | , line): 26 | pass 27 | elif re.match(r'^[A-Z]\n$', line): 28 | current_menlei['code'] = line.strip() 29 | line = f.readline(); index+=1 30 | current_menlei['name'] = line.strip() 31 | # print("遇到了门类: %s" % current_menlei) 32 | elif re.match(r'^\d{2}\n$', line): 33 | current_dalei['code'] = line.strip() 34 | line = f.readline(); index+=1 35 | current_dalei['name'] = line.strip() 36 | # print("遇到了大类: %s" % current_dalei) 37 | elif re.match(r'^\d{3}\n$', line): 38 | current_zhonglei['code'] = line.strip() 39 | line = f.readline(); index+=1 40 | if re.match(r'^\d{4}\n$', line): # 中类没名字: 41 | current_zhonglei['name'] = "" 42 | print("中类:%s没名字" % current_zhonglei['code']) 43 | line = f.readline(); index+=1 44 | current_xiaolei['name'] = line.strip() 45 | current_xiaolei['code'] = line.strip() 46 | else: 47 | current_zhonglei['name'] = line.strip() 48 | # print("遇到了中类: %s" % current_zhonglei) 49 | elif re.match(r'^\d{4}\n$', line): 50 | current_xiaolei['code'] = line.strip() 51 | line = f.readline(); index+=1 52 | current_xiaolei['name'] = line.strip() 53 | # print("遇到了小类: %s" % current_xiaolei) 54 | elif re.match(r'^注释: .*\n$', line): 55 | pass 56 | # print("遇到了注释: %s" % line.strip()) 57 | else: 58 | print("第%d行处理不了"%index) 59 | break 60 | -------------------------------------------------------------------------------- /申银万国行业分类标准.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "code": "210000", 4 | "name": "采掘", 5 | "index_code": "801020", 6 | "children": [ 7 | { 8 | "code": "210100", 9 | "name": "石油开采", 10 | "index_code": "801023", 11 | "children": [ 12 | { 13 | "code": "210101", 14 | "name": "石油开采", 15 | "index_code": "850211", 16 | "children": [] 17 | } 18 | ] 19 | }, 20 | { 21 | "code": "210200", 22 | "name": "煤炭开采", 23 | "index_code": "801021", 24 | "children": [ 25 | { 26 | "code": "210201", 27 | "name": "煤炭开采", 28 | "index_code": "850221", 29 | "children": [] 30 | }, 31 | { 32 | "code": "210202", 33 | "name": "焦炭加工", 34 | "index_code": "850222", 35 | "children": [] 36 | } 37 | ] 38 | }, 39 | { 40 | "code": "210300", 41 | "name": "其他采掘", 42 | "index_code": "801022", 43 | "children": [ 44 | { 45 | "code": "210301", 46 | "name": "其他采掘", 47 | "index_code": "850231", 48 | "children": [] 49 | } 50 | ] 51 | }, 52 | { 53 | "code": "210400", 54 | "name": "采掘服务", 55 | "index_code": "801024", 56 | "children": [ 57 | { 58 | "code": "210401", 59 | "name": "油气钻采服务", 60 | "index_code": "850241", 61 | "children": [] 62 | }, 63 | { 64 | "code": "210402", 65 | "name": "其他采掘服务", 66 | "index_code": "850242", 67 | "children": [] 68 | } 69 | ] 70 | } 71 | ] 72 | }, 73 | { 74 | "code": "220000", 75 | "name": "化工", 76 | "index_code": "801030", 77 | "children": [ 78 | { 79 | "code": "220100", 80 | "name": "石油化工", 81 | "index_code": "801035", 82 | "children": [ 83 | { 84 | "code": "220101", 85 | "name": "石油加工", 86 | "index_code": "850311", 87 | "children": [] 88 | }, 89 | { 90 | "code": "220103", 91 | "name": "石油贸易", 92 | "index_code": "850313", 93 | "children": [] 94 | } 95 | ] 96 | }, 97 | { 98 | "code": "220200", 99 | "name": "化学原料", 100 | "index_code": "801033", 101 | "children": [ 102 | { 103 | "code": "220201", 104 | "name": "纯碱", 105 | "index_code": "850321", 106 | "children": [] 107 | }, 108 | { 109 | "code": "220202", 110 | "name": "氯碱", 111 | "index_code": "850322", 112 | "children": [] 113 | }, 114 | { 115 | "code": "220203", 116 | "name": "无机盐", 117 | "index_code": "850323", 118 | "children": [] 119 | }, 120 | { 121 | "code": "220204", 122 | "name": "其他化学原料", 123 | "index_code": "850324", 124 | "children": [] 125 | } 126 | ] 127 | }, 128 | { 129 | "code": "220300", 130 | "name": "化学制品", 131 | "index_code": "801034", 132 | "children": [ 133 | { 134 | "code": "220301", 135 | "name": "氮肥", 136 | "index_code": "850331", 137 | "children": [] 138 | }, 139 | { 140 | "code": "220302", 141 | "name": "磷肥", 142 | "index_code": "850332", 143 | "children": [] 144 | }, 145 | { 146 | "code": "220306", 147 | "name": "钾肥", 148 | "index_code": "850336", 149 | "children": [] 150 | }, 151 | { 152 | "code": "220310", 153 | "name": "复合肥", 154 | "index_code": "850381", 155 | "children": [] 156 | }, 157 | { 158 | "code": "220303", 159 | "name": "农药", 160 | "index_code": "850333", 161 | "children": [] 162 | }, 163 | { 164 | "code": "220304", 165 | "name": "日用化学产品", 166 | "index_code": "850334", 167 | "children": [] 168 | }, 169 | { 170 | "code": "220305", 171 | "name": "涂料油漆油墨制造", 172 | "index_code": "850335", 173 | "children": [] 174 | }, 175 | { 176 | "code": "220307", 177 | "name": "民爆用品", 178 | "index_code": "850337", 179 | "children": [] 180 | }, 181 | { 182 | "code": "220308", 183 | "name": "纺织化学用品", 184 | "index_code": "850338", 185 | "children": [] 186 | }, 187 | { 188 | "code": "220311", 189 | "name": "氟化工及制冷剂", 190 | "index_code": "850382", 191 | "children": [] 192 | }, 193 | { 194 | "code": "220312", 195 | "name": "磷化工及磷酸盐", 196 | "index_code": "850383", 197 | "children": [] 198 | }, 199 | { 200 | "code": "220313", 201 | "name": "聚氨酯", 202 | "index_code": "850372", 203 | "children": [] 204 | }, 205 | { 206 | "code": "220314", 207 | "name": "玻纤", 208 | "index_code": "850373", 209 | "children": [] 210 | }, 211 | { 212 | "code": "220309", 213 | "name": "其他化学制品", 214 | "index_code": "850339", 215 | "children": [] 216 | } 217 | ] 218 | }, 219 | { 220 | "code": "220400", 221 | "name": "化学纤维", 222 | "index_code": "801032", 223 | "children": [ 224 | { 225 | "code": "220401", 226 | "name": "涤纶", 227 | "index_code": "850341", 228 | "children": [] 229 | }, 230 | { 231 | "code": "220402", 232 | "name": "维纶", 233 | "index_code": "850342", 234 | "children": [] 235 | }, 236 | { 237 | "code": "220403", 238 | "name": "粘胶", 239 | "index_code": "850343", 240 | "children": [] 241 | }, 242 | { 243 | "code": "220405", 244 | "name": "氨纶", 245 | "index_code": "850345", 246 | "children": [] 247 | }, 248 | { 249 | "code": "220404", 250 | "name": "其他纤维", 251 | "index_code": "850344", 252 | "children": [] 253 | } 254 | ] 255 | }, 256 | { 257 | "code": "220500", 258 | "name": "塑料", 259 | "index_code": "801036", 260 | "children": [ 261 | { 262 | "code": "220502", 263 | "name": "合成革", 264 | "index_code": "850352", 265 | "children": [] 266 | }, 267 | { 268 | "code": "220503", 269 | "name": "改性塑料", 270 | "index_code": "850353", 271 | "children": [] 272 | }, 273 | { 274 | "code": "220501", 275 | "name": "其他塑料制品", 276 | "index_code": "850351", 277 | "children": [] 278 | } 279 | ] 280 | }, 281 | { 282 | "code": "220600", 283 | "name": "橡胶", 284 | "index_code": "801037", 285 | "children": [ 286 | { 287 | "code": "220601", 288 | "name": "轮胎", 289 | "index_code": "850361", 290 | "children": [] 291 | }, 292 | { 293 | "code": "220602", 294 | "name": "其他橡胶制品", 295 | "index_code": "850362", 296 | "children": [] 297 | }, 298 | { 299 | "code": "220603", 300 | "name": "炭黑", 301 | "index_code": "850363", 302 | "children": [] 303 | } 304 | ] 305 | } 306 | ] 307 | }, 308 | { 309 | "code": "230000", 310 | "name": "钢铁", 311 | "index_code": "801040", 312 | "children": [ 313 | { 314 | "code": "230100", 315 | "name": "钢铁", 316 | "index_code": "801041", 317 | "children": [ 318 | { 319 | "code": "230101", 320 | "name": "普钢", 321 | "index_code": "850411", 322 | "children": [] 323 | }, 324 | { 325 | "code": "230102", 326 | "name": "特钢", 327 | "index_code": "850412", 328 | "children": [] 329 | } 330 | ] 331 | } 332 | ] 333 | }, 334 | { 335 | "code": "240000", 336 | "name": "有色金属", 337 | "index_code": "801050", 338 | "children": [ 339 | { 340 | "code": "240300", 341 | "name": "工业金属", 342 | "index_code": "801055", 343 | "children": [ 344 | { 345 | "code": "240301", 346 | "name": "铝", 347 | "index_code": "850551", 348 | "children": [] 349 | }, 350 | { 351 | "code": "240302", 352 | "name": "铜", 353 | "index_code": "850552", 354 | "children": [] 355 | }, 356 | { 357 | "code": "240303", 358 | "name": "铅锌", 359 | "index_code": "850553", 360 | "children": [] 361 | } 362 | ] 363 | }, 364 | { 365 | "code": "240400", 366 | "name": "黄金", 367 | "index_code": "801053", 368 | "children": [ 369 | { 370 | "code": "240401", 371 | "name": "黄金", 372 | "index_code": "850531", 373 | "children": [] 374 | } 375 | ] 376 | }, 377 | { 378 | "code": "240500", 379 | "name": "稀有金属", 380 | "index_code": "801054", 381 | "children": [ 382 | { 383 | "code": "240501", 384 | "name": "稀土", 385 | "index_code": "850541", 386 | "children": [] 387 | }, 388 | { 389 | "code": "240502", 390 | "name": "钨", 391 | "index_code": "850542", 392 | "children": [] 393 | }, 394 | { 395 | "code": "240503", 396 | "name": "锂", 397 | "index_code": "850543", 398 | "children": [] 399 | }, 400 | { 401 | "code": "240504", 402 | "name": "其他稀有小金属", 403 | "index_code": "850544", 404 | "children": [] 405 | } 406 | ] 407 | }, 408 | { 409 | "code": "240200", 410 | "name": "金属非金属新材料", 411 | "index_code": "801051", 412 | "children": [ 413 | { 414 | "code": "240201", 415 | "name": "金属新材料", 416 | "index_code": "850521", 417 | "children": [] 418 | }, 419 | { 420 | "code": "240202", 421 | "name": "磁性材料", 422 | "index_code": "850522", 423 | "children": [] 424 | }, 425 | { 426 | "code": "240203", 427 | "name": "非金属新材料", 428 | "index_code": "850523", 429 | "children": [] 430 | } 431 | ] 432 | } 433 | ] 434 | }, 435 | { 436 | "code": "610000", 437 | "name": "建筑材料", 438 | "index_code": "801710", 439 | "children": [ 440 | { 441 | "code": "610100", 442 | "name": "水泥制造", 443 | "index_code": "801711", 444 | "children": [ 445 | { 446 | "code": "610101", 447 | "name": "水泥制造", 448 | "index_code": "850612", 449 | "children": [] 450 | } 451 | ] 452 | }, 453 | { 454 | "code": "610200", 455 | "name": "玻璃制造", 456 | "index_code": "801712", 457 | "children": [ 458 | { 459 | "code": "610201", 460 | "name": "玻璃制造", 461 | "index_code": "850611", 462 | "children": [] 463 | } 464 | ] 465 | }, 466 | { 467 | "code": "610300", 468 | "name": "其他建材", 469 | "index_code": "801713", 470 | "children": [ 471 | { 472 | "code": "610301", 473 | "name": "耐火材料", 474 | "index_code": "850615", 475 | "children": [] 476 | }, 477 | { 478 | "code": "610302", 479 | "name": "管材", 480 | "index_code": "850616", 481 | "children": [] 482 | }, 483 | { 484 | "code": "610303", 485 | "name": "其他建材", 486 | "index_code": "850614", 487 | "children": [] 488 | } 489 | ] 490 | } 491 | ] 492 | }, 493 | { 494 | "code": "620000", 495 | "name": "建筑装饰", 496 | "index_code": "801720", 497 | "children": [ 498 | { 499 | "code": "620100", 500 | "name": "房屋建设", 501 | "index_code": "801721", 502 | "children": [ 503 | { 504 | "code": "620101", 505 | "name": "房屋建设", 506 | "index_code": "850623", 507 | "children": [] 508 | } 509 | ] 510 | }, 511 | { 512 | "code": "620200", 513 | "name": "装修装饰", 514 | "index_code": "801722", 515 | "children": [ 516 | { 517 | "code": "620201", 518 | "name": "装修装饰", 519 | "index_code": "857221", 520 | "children": [] 521 | } 522 | ] 523 | }, 524 | { 525 | "code": "620300", 526 | "name": "基础建设", 527 | "index_code": "801723", 528 | "children": [ 529 | { 530 | "code": "620301", 531 | "name": "城轨建设", 532 | "index_code": "857231", 533 | "children": [] 534 | }, 535 | { 536 | "code": "620302", 537 | "name": "路桥施工", 538 | "index_code": "857232", 539 | "children": [] 540 | }, 541 | { 542 | "code": "620303", 543 | "name": "水利工程", 544 | "index_code": "857233", 545 | "children": [] 546 | }, 547 | { 548 | "code": "620304", 549 | "name": "铁路建设", 550 | "index_code": "857234", 551 | "children": [] 552 | }, 553 | { 554 | "code": "620305", 555 | "name": "其他基础建设", 556 | "index_code": "857235", 557 | "children": [] 558 | } 559 | ] 560 | }, 561 | { 562 | "code": "620400", 563 | "name": "专业工程", 564 | "index_code": "801724", 565 | "children": [ 566 | { 567 | "code": "620401", 568 | "name": "钢结构", 569 | "index_code": "857241", 570 | "children": [] 571 | }, 572 | { 573 | "code": "620402", 574 | "name": "化学工程", 575 | "index_code": "857242", 576 | "children": [] 577 | }, 578 | { 579 | "code": "620403", 580 | "name": "国际工程承包", 581 | "index_code": "857243", 582 | "children": [] 583 | }, 584 | { 585 | "code": "620404", 586 | "name": "其他专业工程", 587 | "index_code": "857244", 588 | "children": [] 589 | } 590 | ] 591 | }, 592 | { 593 | "code": "620500", 594 | "name": "园林工程", 595 | "index_code": "801725", 596 | "children": [ 597 | { 598 | "code": "620501", 599 | "name": "园林工程", 600 | "index_code": "857251", 601 | "children": [] 602 | } 603 | ] 604 | } 605 | ] 606 | }, 607 | { 608 | "code": "630000", 609 | "name": "电气设备", 610 | "index_code": "801730", 611 | "children": [ 612 | { 613 | "code": "630100", 614 | "name": "电机", 615 | "index_code": "801731", 616 | "children": [ 617 | { 618 | "code": "630101", 619 | "name": "电机", 620 | "index_code": "850741", 621 | "children": [] 622 | } 623 | ] 624 | }, 625 | { 626 | "code": "630200", 627 | "name": "电气自动化设备", 628 | "index_code": "801732", 629 | "children": [ 630 | { 631 | "code": "630201", 632 | "name": "电网自动化", 633 | "index_code": "857321", 634 | "children": [] 635 | }, 636 | { 637 | "code": "630202", 638 | "name": "工控自动化", 639 | "index_code": "857322", 640 | "children": [] 641 | }, 642 | { 643 | "code": "630203", 644 | "name": "计量仪表", 645 | "index_code": "857323", 646 | "children": [] 647 | } 648 | ] 649 | }, 650 | { 651 | "code": "630300", 652 | "name": "电源设备", 653 | "index_code": "801733", 654 | "children": [ 655 | { 656 | "code": "630301", 657 | "name": "综合电力设备商", 658 | "index_code": "857331", 659 | "children": [] 660 | }, 661 | { 662 | "code": "630302", 663 | "name": "风电设备", 664 | "index_code": "857332", 665 | "children": [] 666 | }, 667 | { 668 | "code": "630303", 669 | "name": "光伏设备", 670 | "index_code": "857333", 671 | "children": [] 672 | }, 673 | { 674 | "code": "630304", 675 | "name": "火电设备", 676 | "index_code": "857334", 677 | "children": [] 678 | }, 679 | { 680 | "code": "630305", 681 | "name": "储能设备", 682 | "index_code": "857335", 683 | "children": [] 684 | }, 685 | { 686 | "code": "630306", 687 | "name": "其它电源设备", 688 | "index_code": "857336", 689 | "children": [] 690 | } 691 | ] 692 | }, 693 | { 694 | "code": "630400", 695 | "name": "高低压设备", 696 | "index_code": "801734", 697 | "children": [ 698 | { 699 | "code": "630401", 700 | "name": "高压设备", 701 | "index_code": "857341", 702 | "children": [] 703 | }, 704 | { 705 | "code": "630402", 706 | "name": "中压设备", 707 | "index_code": "857342", 708 | "children": [] 709 | }, 710 | { 711 | "code": "630403", 712 | "name": "低压设备", 713 | "index_code": "857343", 714 | "children": [] 715 | }, 716 | { 717 | "code": "630404", 718 | "name": "线缆部件及其他", 719 | "index_code": "857344", 720 | "children": [] 721 | } 722 | ] 723 | } 724 | ] 725 | }, 726 | { 727 | "code": "640000", 728 | "name": "机械设备", 729 | "index_code": "801890", 730 | "children": [ 731 | { 732 | "code": "640100", 733 | "name": "通用机械", 734 | "index_code": "801072", 735 | "children": [ 736 | { 737 | "code": "640101", 738 | "name": "机床工具", 739 | "index_code": "850711", 740 | "children": [] 741 | }, 742 | { 743 | "code": "640102", 744 | "name": "机械基础件", 745 | "index_code": "850712", 746 | "children": [] 747 | }, 748 | { 749 | "code": "640103", 750 | "name": "磨具磨料", 751 | "index_code": "850713", 752 | "children": [] 753 | }, 754 | { 755 | "code": "640104", 756 | "name": "内燃机", 757 | "index_code": "850714", 758 | "children": [] 759 | }, 760 | { 761 | "code": "640105", 762 | "name": "制冷空调设备", 763 | "index_code": "850715", 764 | "children": [] 765 | }, 766 | { 767 | "code": "640106", 768 | "name": "其它通用机械", 769 | "index_code": "850716", 770 | "children": [] 771 | } 772 | ] 773 | }, 774 | { 775 | "code": "640200", 776 | "name": "专用设备", 777 | "index_code": "801074", 778 | "children": [ 779 | { 780 | "code": "640201", 781 | "name": "工程机械", 782 | "index_code": "850722", 783 | "children": [] 784 | }, 785 | { 786 | "code": "640202", 787 | "name": "重型机械", 788 | "index_code": "850724", 789 | "children": [] 790 | }, 791 | { 792 | "code": "640203", 793 | "name": "冶金矿采化工设备", 794 | "index_code": "850725", 795 | "children": [] 796 | }, 797 | { 798 | "code": "640204", 799 | "name": "楼宇设备", 800 | "index_code": "850728", 801 | "children": [] 802 | }, 803 | { 804 | "code": "640205", 805 | "name": "环保设备", 806 | "index_code": "850729", 807 | "children": [] 808 | }, 809 | { 810 | "code": "640206", 811 | "name": "纺织服装设备", 812 | "index_code": "850721", 813 | "children": [] 814 | }, 815 | { 816 | "code": "640207", 817 | "name": "农用机械", 818 | "index_code": "850723", 819 | "children": [] 820 | }, 821 | { 822 | "code": "640208", 823 | "name": "印刷包装机械", 824 | "index_code": "850726", 825 | "children": [] 826 | }, 827 | { 828 | "code": "640209", 829 | "name": "其它专用机械", 830 | "index_code": "850727", 831 | "children": [] 832 | } 833 | ] 834 | }, 835 | { 836 | "code": "640300", 837 | "name": "仪器仪表", 838 | "index_code": "801073", 839 | "children": [ 840 | { 841 | "code": "640301", 842 | "name": "仪器仪表", 843 | "index_code": "850731", 844 | "children": [] 845 | } 846 | ] 847 | }, 848 | { 849 | "code": "640400", 850 | "name": "金属制品", 851 | "index_code": "801075", 852 | "children": [ 853 | { 854 | "code": "640401", 855 | "name": "金属制品", 856 | "index_code": "850751", 857 | "children": [] 858 | } 859 | ] 860 | }, 861 | { 862 | "code": "640500", 863 | "name": "运输设备", 864 | "index_code": "801076", 865 | "children": [ 866 | { 867 | "code": "640501", 868 | "name": "铁路设备", 869 | "index_code": "850936", 870 | "children": [] 871 | } 872 | ] 873 | } 874 | ] 875 | }, 876 | { 877 | "code": "650000", 878 | "name": "国防军工", 879 | "index_code": "801740", 880 | "children": [ 881 | { 882 | "code": "650100", 883 | "name": "航天装备", 884 | "index_code": "801741", 885 | "children": [ 886 | { 887 | "code": "650101", 888 | "name": "航天装备", 889 | "index_code": "857411", 890 | "children": [] 891 | } 892 | ] 893 | }, 894 | { 895 | "code": "650200", 896 | "name": "航空装备", 897 | "index_code": "801742", 898 | "children": [ 899 | { 900 | "code": "650201", 901 | "name": "航空装备", 902 | "index_code": "857421", 903 | "children": [] 904 | } 905 | ] 906 | }, 907 | { 908 | "code": "650300", 909 | "name": "地面兵装", 910 | "index_code": "801743", 911 | "children": [ 912 | { 913 | "code": "650301", 914 | "name": "地面兵装", 915 | "index_code": "857431", 916 | "children": [] 917 | } 918 | ] 919 | }, 920 | { 921 | "code": "650400", 922 | "name": "船舶制造", 923 | "index_code": "801744", 924 | "children": [ 925 | { 926 | "code": "650401", 927 | "name": "船舶制造", 928 | "index_code": "850935", 929 | "children": [] 930 | } 931 | ] 932 | } 933 | ] 934 | }, 935 | { 936 | "code": "280000", 937 | "name": "汽车", 938 | "index_code": "801880", 939 | "children": [ 940 | { 941 | "code": "280100", 942 | "name": "汽车整车", 943 | "index_code": "801094", 944 | "children": [ 945 | { 946 | "code": "280101", 947 | "name": "乘用车", 948 | "index_code": "850911", 949 | "children": [] 950 | }, 951 | { 952 | "code": "280102", 953 | "name": "商用载货车", 954 | "index_code": "850912", 955 | "children": [] 956 | }, 957 | { 958 | "code": "280103", 959 | "name": "商用载客车", 960 | "index_code": "850913", 961 | "children": [] 962 | } 963 | ] 964 | }, 965 | { 966 | "code": "280200", 967 | "name": "汽车零部件", 968 | "index_code": "801093", 969 | "children": [ 970 | { 971 | "code": "280201", 972 | "name": "汽车零部件", 973 | "index_code": "850921", 974 | "children": [] 975 | } 976 | ] 977 | }, 978 | { 979 | "code": "280300", 980 | "name": "汽车服务", 981 | "index_code": "801092", 982 | "children": [ 983 | { 984 | "code": "280301", 985 | "name": "汽车服务", 986 | "index_code": "850941", 987 | "children": [] 988 | } 989 | ] 990 | }, 991 | { 992 | "code": "280400", 993 | "name": "其他交运设备", 994 | "index_code": "801881", 995 | "children": [ 996 | { 997 | "code": "280401", 998 | "name": "其他交运设备", 999 | "index_code": "858811", 1000 | "children": [] 1001 | } 1002 | ] 1003 | } 1004 | ] 1005 | }, 1006 | { 1007 | "code": "330000", 1008 | "name": "家用电器", 1009 | "index_code": "801110", 1010 | "children": [ 1011 | { 1012 | "code": "330100", 1013 | "name": "白色家电", 1014 | "index_code": "801111", 1015 | "children": [ 1016 | { 1017 | "code": "330101", 1018 | "name": "冰箱", 1019 | "index_code": "851111", 1020 | "children": [] 1021 | }, 1022 | { 1023 | "code": "330102", 1024 | "name": "空调", 1025 | "index_code": "851112", 1026 | "children": [] 1027 | }, 1028 | { 1029 | "code": "330103", 1030 | "name": "洗衣机", 1031 | "index_code": "851113", 1032 | "children": [] 1033 | }, 1034 | { 1035 | "code": "330104", 1036 | "name": "小家电", 1037 | "index_code": "851114", 1038 | "children": [] 1039 | }, 1040 | { 1041 | "code": "330105", 1042 | "name": "家电零部件", 1043 | "index_code": "851115", 1044 | "children": [] 1045 | } 1046 | ] 1047 | }, 1048 | { 1049 | "code": "330200", 1050 | "name": "视听器材", 1051 | "index_code": "801112", 1052 | "children": [ 1053 | { 1054 | "code": "330201", 1055 | "name": "彩电", 1056 | "index_code": "851121", 1057 | "children": [] 1058 | }, 1059 | { 1060 | "code": "330202", 1061 | "name": "其它视听器材", 1062 | "index_code": "851122", 1063 | "children": [] 1064 | } 1065 | ] 1066 | } 1067 | ] 1068 | }, 1069 | { 1070 | "code": "360000", 1071 | "name": "轻工制造", 1072 | "index_code": "801140", 1073 | "children": [ 1074 | { 1075 | "code": "360100", 1076 | "name": "造纸", 1077 | "index_code": "801143", 1078 | "children": [ 1079 | { 1080 | "code": "360101", 1081 | "name": "造纸", 1082 | "index_code": "851411", 1083 | "children": [] 1084 | } 1085 | ] 1086 | }, 1087 | { 1088 | "code": "360200", 1089 | "name": "包装印刷", 1090 | "index_code": "801141", 1091 | "children": [ 1092 | { 1093 | "code": "360201", 1094 | "name": "包装印刷", 1095 | "index_code": "851421", 1096 | "children": [] 1097 | } 1098 | ] 1099 | }, 1100 | { 1101 | "code": "360300", 1102 | "name": "家用轻工", 1103 | "index_code": "801142", 1104 | "children": [ 1105 | { 1106 | "code": "360302", 1107 | "name": "家具", 1108 | "index_code": "851432", 1109 | "children": [] 1110 | }, 1111 | { 1112 | "code": "360303", 1113 | "name": "其他家用轻工", 1114 | "index_code": "851433", 1115 | "children": [] 1116 | }, 1117 | { 1118 | "code": "360304", 1119 | "name": "珠宝首饰", 1120 | "index_code": "851434", 1121 | "children": [] 1122 | }, 1123 | { 1124 | "code": "360305", 1125 | "name": "文娱用品", 1126 | "index_code": "851435", 1127 | "children": [] 1128 | } 1129 | ] 1130 | }, 1131 | { 1132 | "code": "360400", 1133 | "name": "其他轻工制造", 1134 | "index_code": "801144", 1135 | "children": [ 1136 | { 1137 | "code": "360401", 1138 | "name": "其他轻工制造", 1139 | "index_code": "851441", 1140 | "children": [] 1141 | } 1142 | ] 1143 | } 1144 | ] 1145 | }, 1146 | { 1147 | "code": "110000", 1148 | "name": "农林牧渔", 1149 | "index_code": "801010", 1150 | "children": [ 1151 | { 1152 | "code": "110100", 1153 | "name": "种植业", 1154 | "index_code": "801016", 1155 | "children": [ 1156 | { 1157 | "code": "110101", 1158 | "name": "种子生产", 1159 | "index_code": "850111", 1160 | "children": [] 1161 | }, 1162 | { 1163 | "code": "110102", 1164 | "name": "粮食种植", 1165 | "index_code": "850112", 1166 | "children": [] 1167 | }, 1168 | { 1169 | "code": "110103", 1170 | "name": "其他种植业", 1171 | "index_code": "850113", 1172 | "children": [] 1173 | } 1174 | ] 1175 | }, 1176 | { 1177 | "code": "110200", 1178 | "name": "渔业", 1179 | "index_code": "801015", 1180 | "children": [ 1181 | { 1182 | "code": "110201", 1183 | "name": "海洋捕捞", 1184 | "index_code": "850121", 1185 | "children": [] 1186 | }, 1187 | { 1188 | "code": "110202", 1189 | "name": "水产养殖", 1190 | "index_code": "850122", 1191 | "children": [] 1192 | } 1193 | ] 1194 | }, 1195 | { 1196 | "code": "110300", 1197 | "name": "林业", 1198 | "index_code": "801011", 1199 | "children": [ 1200 | { 1201 | "code": "110301", 1202 | "name": "林业", 1203 | "index_code": "850131", 1204 | "children": [] 1205 | } 1206 | ] 1207 | }, 1208 | { 1209 | "code": "110400", 1210 | "name": "饲料", 1211 | "index_code": "801014", 1212 | "children": [ 1213 | { 1214 | "code": "110401", 1215 | "name": "饲料", 1216 | "index_code": "850141", 1217 | "children": [] 1218 | } 1219 | ] 1220 | }, 1221 | { 1222 | "code": "110500", 1223 | "name": "农产品加工", 1224 | "index_code": "801012", 1225 | "children": [ 1226 | { 1227 | "code": "110501", 1228 | "name": "果蔬加工", 1229 | "index_code": "850151", 1230 | "children": [] 1231 | }, 1232 | { 1233 | "code": "110502", 1234 | "name": "粮油加工", 1235 | "index_code": "850152", 1236 | "children": [] 1237 | }, 1238 | { 1239 | "code": "110504", 1240 | "name": "其他农产品加工", 1241 | "index_code": "850154", 1242 | "children": [] 1243 | } 1244 | ] 1245 | }, 1246 | { 1247 | "code": "110600", 1248 | "name": "农业综合", 1249 | "index_code": "801013", 1250 | "children": [ 1251 | { 1252 | "code": "110601", 1253 | "name": "农业综合", 1254 | "index_code": "850161", 1255 | "children": [] 1256 | } 1257 | ] 1258 | }, 1259 | { 1260 | "code": "110700", 1261 | "name": "畜禽养殖", 1262 | "index_code": "801017", 1263 | "children": [ 1264 | { 1265 | "code": "110701", 1266 | "name": "畜禽养殖", 1267 | "index_code": "850171", 1268 | "children": [] 1269 | } 1270 | ] 1271 | }, 1272 | { 1273 | "code": "110800", 1274 | "name": "动物保健", 1275 | "index_code": "801018", 1276 | "children": [ 1277 | { 1278 | "code": "110801", 1279 | "name": "动物保健", 1280 | "index_code": "850181", 1281 | "children": [] 1282 | } 1283 | ] 1284 | } 1285 | ] 1286 | }, 1287 | { 1288 | "code": "340000", 1289 | "name": "食品饮料", 1290 | "index_code": "801120", 1291 | "children": [ 1292 | { 1293 | "code": "340300", 1294 | "name": "饮料制造", 1295 | "index_code": "801123", 1296 | "children": [ 1297 | { 1298 | "code": "340301", 1299 | "name": "白酒", 1300 | "index_code": "851231", 1301 | "children": [] 1302 | }, 1303 | { 1304 | "code": "340302", 1305 | "name": "啤酒", 1306 | "index_code": "851232", 1307 | "children": [] 1308 | }, 1309 | { 1310 | "code": "340303", 1311 | "name": "其他酒类", 1312 | "index_code": "851233", 1313 | "children": [] 1314 | }, 1315 | { 1316 | "code": "340304", 1317 | "name": "软饮料", 1318 | "index_code": "851234", 1319 | "children": [] 1320 | }, 1321 | { 1322 | "code": "340305", 1323 | "name": "葡萄酒", 1324 | "index_code": "851235", 1325 | "children": [] 1326 | }, 1327 | { 1328 | "code": "340306", 1329 | "name": "黄酒", 1330 | "index_code": "851236", 1331 | "children": [] 1332 | } 1333 | ] 1334 | }, 1335 | { 1336 | "code": "340400", 1337 | "name": "食品加工", 1338 | "index_code": "801124", 1339 | "children": [ 1340 | { 1341 | "code": "340401", 1342 | "name": "肉制品", 1343 | "index_code": "851241", 1344 | "children": [] 1345 | }, 1346 | { 1347 | "code": "340402", 1348 | "name": "调味发酵品", 1349 | "index_code": "851242", 1350 | "children": [] 1351 | }, 1352 | { 1353 | "code": "340403", 1354 | "name": "乳品", 1355 | "index_code": "851243", 1356 | "children": [] 1357 | }, 1358 | { 1359 | "code": "340404", 1360 | "name": "食品综合", 1361 | "index_code": "851244", 1362 | "children": [] 1363 | } 1364 | ] 1365 | } 1366 | ] 1367 | }, 1368 | { 1369 | "code": "350000", 1370 | "name": "纺织服装", 1371 | "index_code": "801130", 1372 | "children": [ 1373 | { 1374 | "code": "350100", 1375 | "name": "纺织制造", 1376 | "index_code": "801131", 1377 | "children": [ 1378 | { 1379 | "code": "350101", 1380 | "name": "毛纺", 1381 | "index_code": "851311", 1382 | "children": [] 1383 | }, 1384 | { 1385 | "code": "350102", 1386 | "name": "棉纺", 1387 | "index_code": "851312", 1388 | "children": [] 1389 | }, 1390 | { 1391 | "code": "350103", 1392 | "name": "丝绸", 1393 | "index_code": "851313", 1394 | "children": [] 1395 | }, 1396 | { 1397 | "code": "350104", 1398 | "name": "印染", 1399 | "index_code": "851314", 1400 | "children": [] 1401 | }, 1402 | { 1403 | "code": "350105", 1404 | "name": "辅料", 1405 | "index_code": "851315", 1406 | "children": [] 1407 | }, 1408 | { 1409 | "code": "350106", 1410 | "name": "其他纺织", 1411 | "index_code": "851316", 1412 | "children": [] 1413 | } 1414 | ] 1415 | }, 1416 | { 1417 | "code": "350200", 1418 | "name": "服装家纺", 1419 | "index_code": "801132", 1420 | "children": [ 1421 | { 1422 | "code": "350202", 1423 | "name": "男装", 1424 | "index_code": "851322", 1425 | "children": [] 1426 | }, 1427 | { 1428 | "code": "350203", 1429 | "name": "女装", 1430 | "index_code": "851323", 1431 | "children": [] 1432 | }, 1433 | { 1434 | "code": "350204", 1435 | "name": "休闲服装", 1436 | "index_code": "851324", 1437 | "children": [] 1438 | }, 1439 | { 1440 | "code": "350205", 1441 | "name": "鞋帽", 1442 | "index_code": "851325", 1443 | "children": [] 1444 | }, 1445 | { 1446 | "code": "350206", 1447 | "name": "家纺", 1448 | "index_code": "851326", 1449 | "children": [] 1450 | }, 1451 | { 1452 | "code": "350207", 1453 | "name": "其他服装", 1454 | "index_code": "851327", 1455 | "children": [] 1456 | } 1457 | ] 1458 | } 1459 | ] 1460 | }, 1461 | { 1462 | "code": "370000", 1463 | "name": "医药生物", 1464 | "index_code": "801150", 1465 | "children": [ 1466 | { 1467 | "code": "370100", 1468 | "name": "化学制药", 1469 | "index_code": "801151", 1470 | "children": [ 1471 | { 1472 | "code": "370101", 1473 | "name": "化学原料药", 1474 | "index_code": "851511", 1475 | "children": [] 1476 | }, 1477 | { 1478 | "code": "370102", 1479 | "name": "化学制剂", 1480 | "index_code": "851512", 1481 | "children": [] 1482 | } 1483 | ] 1484 | }, 1485 | { 1486 | "code": "370200", 1487 | "name": "中药", 1488 | "index_code": "801155", 1489 | "children": [ 1490 | { 1491 | "code": "370201", 1492 | "name": "中药", 1493 | "index_code": "851521", 1494 | "children": [] 1495 | } 1496 | ] 1497 | }, 1498 | { 1499 | "code": "370300", 1500 | "name": "生物制品", 1501 | "index_code": "801152", 1502 | "children": [ 1503 | { 1504 | "code": "370301", 1505 | "name": "生物制品", 1506 | "index_code": "851531", 1507 | "children": [] 1508 | } 1509 | ] 1510 | }, 1511 | { 1512 | "code": "370400", 1513 | "name": "医药商业", 1514 | "index_code": "801154", 1515 | "children": [ 1516 | { 1517 | "code": "370401", 1518 | "name": "医药商业", 1519 | "index_code": "851541", 1520 | "children": [] 1521 | } 1522 | ] 1523 | }, 1524 | { 1525 | "code": "370500", 1526 | "name": "医疗器械", 1527 | "index_code": "801153", 1528 | "children": [ 1529 | { 1530 | "code": "370501", 1531 | "name": "医疗器械", 1532 | "index_code": "851551", 1533 | "children": [] 1534 | } 1535 | ] 1536 | }, 1537 | { 1538 | "code": "370600", 1539 | "name": "医疗服务", 1540 | "index_code": "801156", 1541 | "children": [ 1542 | { 1543 | "code": "370601", 1544 | "name": "医疗服务", 1545 | "index_code": "851561", 1546 | "children": [] 1547 | } 1548 | ] 1549 | } 1550 | ] 1551 | }, 1552 | { 1553 | "code": "450000", 1554 | "name": "商业贸易", 1555 | "index_code": "801200", 1556 | "children": [ 1557 | { 1558 | "code": "450300", 1559 | "name": "一般零售", 1560 | "index_code": "801203", 1561 | "children": [ 1562 | { 1563 | "code": "450301", 1564 | "name": "百货", 1565 | "index_code": "852031", 1566 | "children": [] 1567 | }, 1568 | { 1569 | "code": "450302", 1570 | "name": "超市", 1571 | "index_code": "852032", 1572 | "children": [] 1573 | }, 1574 | { 1575 | "code": "450303", 1576 | "name": "多业态零售", 1577 | "index_code": "852033", 1578 | "children": [] 1579 | } 1580 | ] 1581 | }, 1582 | { 1583 | "code": "450400", 1584 | "name": "专业零售", 1585 | "index_code": "801204", 1586 | "children": [ 1587 | { 1588 | "code": "450401", 1589 | "name": "专业连锁", 1590 | "index_code": "852041", 1591 | "children": [] 1592 | } 1593 | ] 1594 | }, 1595 | { 1596 | "code": "450500", 1597 | "name": "商业物业经营", 1598 | "index_code": "801205", 1599 | "children": [ 1600 | { 1601 | "code": "450501", 1602 | "name": "一般物业经营", 1603 | "index_code": "852051", 1604 | "children": [] 1605 | }, 1606 | { 1607 | "code": "450502", 1608 | "name": "专业市场", 1609 | "index_code": "852052", 1610 | "children": [] 1611 | } 1612 | ] 1613 | }, 1614 | { 1615 | "code": "450200", 1616 | "name": "贸易", 1617 | "index_code": "801202", 1618 | "children": [ 1619 | { 1620 | "code": "450201", 1621 | "name": "贸易", 1622 | "index_code": "852021", 1623 | "children": [] 1624 | } 1625 | ] 1626 | } 1627 | ] 1628 | }, 1629 | { 1630 | "code": "460000", 1631 | "name": "休闲服务", 1632 | "index_code": "801210", 1633 | "children": [ 1634 | { 1635 | "code": "460100", 1636 | "name": "景点", 1637 | "index_code": "801212", 1638 | "children": [ 1639 | { 1640 | "code": "460101", 1641 | "name": "人工景点", 1642 | "index_code": "852111", 1643 | "children": [] 1644 | }, 1645 | { 1646 | "code": "460102", 1647 | "name": "自然景点", 1648 | "index_code": "852112", 1649 | "children": [] 1650 | } 1651 | ] 1652 | }, 1653 | { 1654 | "code": "460200", 1655 | "name": "酒店", 1656 | "index_code": "801213", 1657 | "children": [ 1658 | { 1659 | "code": "460201", 1660 | "name": "酒店", 1661 | "index_code": "852121", 1662 | "children": [] 1663 | } 1664 | ] 1665 | }, 1666 | { 1667 | "code": "460300", 1668 | "name": "旅游综合", 1669 | "index_code": "801214", 1670 | "children": [ 1671 | { 1672 | "code": "460301", 1673 | "name": "旅游综合", 1674 | "index_code": "852131", 1675 | "children": [] 1676 | } 1677 | ] 1678 | }, 1679 | { 1680 | "code": "460400", 1681 | "name": "餐饮", 1682 | "index_code": "801211", 1683 | "children": [ 1684 | { 1685 | "code": "460401", 1686 | "name": "餐饮", 1687 | "index_code": "852141", 1688 | "children": [] 1689 | } 1690 | ] 1691 | }, 1692 | { 1693 | "code": "460500", 1694 | "name": "其他休闲服务", 1695 | "index_code": "801215", 1696 | "children": [ 1697 | { 1698 | "code": "460501", 1699 | "name": "其他休闲服务", 1700 | "index_code": "852151", 1701 | "children": [] 1702 | } 1703 | ] 1704 | } 1705 | ] 1706 | }, 1707 | { 1708 | "code": "270000", 1709 | "name": "电子", 1710 | "index_code": "801080", 1711 | "children": [ 1712 | { 1713 | "code": "270100", 1714 | "name": "半导体", 1715 | "index_code": "801081", 1716 | "children": [ 1717 | { 1718 | "code": "270101", 1719 | "name": "集成电路", 1720 | "index_code": "850811", 1721 | "children": [] 1722 | }, 1723 | { 1724 | "code": "270102", 1725 | "name": "分立器件", 1726 | "index_code": "850812", 1727 | "children": [] 1728 | }, 1729 | { 1730 | "code": "270103", 1731 | "name": "半导体材料", 1732 | "index_code": "850813", 1733 | "children": [] 1734 | } 1735 | ] 1736 | }, 1737 | { 1738 | "code": "270200", 1739 | "name": "元件", 1740 | "index_code": "801083", 1741 | "children": [ 1742 | { 1743 | "code": "270202", 1744 | "name": "印制电路板", 1745 | "index_code": "850822", 1746 | "children": [] 1747 | }, 1748 | { 1749 | "code": "270203", 1750 | "name": "被动元件", 1751 | "index_code": "850823", 1752 | "children": [] 1753 | } 1754 | ] 1755 | }, 1756 | { 1757 | "code": "270300", 1758 | "name": "光学光电子", 1759 | "index_code": "801084", 1760 | "children": [ 1761 | { 1762 | "code": "270301", 1763 | "name": "显示器件", 1764 | "index_code": "850831", 1765 | "children": [] 1766 | }, 1767 | { 1768 | "code": "270302", 1769 | "name": "LED", 1770 | "index_code": "850832", 1771 | "children": [] 1772 | }, 1773 | { 1774 | "code": "270303", 1775 | "name": "光学元件", 1776 | "index_code": "850833", 1777 | "children": [] 1778 | } 1779 | ] 1780 | }, 1781 | { 1782 | "code": "270500", 1783 | "name": "电子制造", 1784 | "index_code": "801085", 1785 | "children": [ 1786 | { 1787 | "code": "270501", 1788 | "name": "电子系统组装", 1789 | "index_code": "850851", 1790 | "children": [] 1791 | }, 1792 | { 1793 | "code": "270502", 1794 | "name": "电子零部件制造", 1795 | "index_code": "850852", 1796 | "children": [] 1797 | } 1798 | ] 1799 | }, 1800 | { 1801 | "code": "270400", 1802 | "name": "其他电子", 1803 | "index_code": "801082", 1804 | "children": [ 1805 | { 1806 | "code": "270401", 1807 | "name": "其他电子", 1808 | "index_code": "850841", 1809 | "children": [] 1810 | } 1811 | ] 1812 | } 1813 | ] 1814 | }, 1815 | { 1816 | "code": "710000", 1817 | "name": "计算机", 1818 | "index_code": "801750", 1819 | "children": [ 1820 | { 1821 | "code": "710100", 1822 | "name": "计算机设备", 1823 | "index_code": "801101", 1824 | "children": [ 1825 | { 1826 | "code": "710101", 1827 | "name": "计算机设备", 1828 | "index_code": "851021", 1829 | "children": [] 1830 | } 1831 | ] 1832 | }, 1833 | { 1834 | "code": "710200", 1835 | "name": "计算机应用", 1836 | "index_code": "801222", 1837 | "children": [ 1838 | { 1839 | "code": "710201", 1840 | "name": "软件开发", 1841 | "index_code": "852225", 1842 | "children": [] 1843 | }, 1844 | { 1845 | "code": "710202", 1846 | "name": "IT服务", 1847 | "index_code": "852226", 1848 | "children": [] 1849 | } 1850 | ] 1851 | } 1852 | ] 1853 | }, 1854 | { 1855 | "code": "720000", 1856 | "name": "传媒", 1857 | "index_code": "801760", 1858 | "children": [ 1859 | { 1860 | "code": "720100", 1861 | "name": "文化传媒", 1862 | "index_code": "801761", 1863 | "children": [ 1864 | { 1865 | "code": "720101", 1866 | "name": "平面媒体", 1867 | "index_code": "852241", 1868 | "children": [] 1869 | }, 1870 | { 1871 | "code": "720102", 1872 | "name": "影视动漫", 1873 | "index_code": "852242", 1874 | "children": [] 1875 | }, 1876 | { 1877 | "code": "720103", 1878 | "name": "有线电视网络", 1879 | "index_code": "852224", 1880 | "children": [] 1881 | }, 1882 | { 1883 | "code": "720104", 1884 | "name": "其他文化传媒", 1885 | "index_code": "852244", 1886 | "children": [] 1887 | } 1888 | ] 1889 | }, 1890 | { 1891 | "code": "720200", 1892 | "name": "营销传播", 1893 | "index_code": "801751", 1894 | "children": [ 1895 | { 1896 | "code": "720201", 1897 | "name": "营销服务", 1898 | "index_code": "852243", 1899 | "children": [] 1900 | } 1901 | ] 1902 | }, 1903 | { 1904 | "code": "720300", 1905 | "name": "互联网传媒", 1906 | "index_code": "801752", 1907 | "children": [ 1908 | { 1909 | "code": "720301", 1910 | "name": "互联网信息服务", 1911 | "index_code": "852221", 1912 | "children": [] 1913 | }, 1914 | { 1915 | "code": "720302", 1916 | "name": "移动互联网服务", 1917 | "index_code": "852222", 1918 | "children": [] 1919 | }, 1920 | { 1921 | "code": "720303", 1922 | "name": "其他互联网服务", 1923 | "index_code": "852223", 1924 | "children": [] 1925 | } 1926 | ] 1927 | } 1928 | ] 1929 | }, 1930 | { 1931 | "code": "730000", 1932 | "name": "通信", 1933 | "index_code": "801770", 1934 | "children": [ 1935 | { 1936 | "code": "730100", 1937 | "name": "通信运营", 1938 | "index_code": "801223", 1939 | "children": [ 1940 | { 1941 | "code": "730101", 1942 | "name": "通信运营", 1943 | "index_code": "852211", 1944 | "children": [] 1945 | } 1946 | ] 1947 | }, 1948 | { 1949 | "code": "730200", 1950 | "name": "通信设备", 1951 | "index_code": "801102", 1952 | "children": [ 1953 | { 1954 | "code": "730201", 1955 | "name": "终端设备", 1956 | "index_code": "851012", 1957 | "children": [] 1958 | }, 1959 | { 1960 | "code": "730202", 1961 | "name": "通信传输设备", 1962 | "index_code": "851013", 1963 | "children": [] 1964 | }, 1965 | { 1966 | "code": "730203", 1967 | "name": "通信配套服务", 1968 | "index_code": "851014", 1969 | "children": [] 1970 | } 1971 | ] 1972 | } 1973 | ] 1974 | }, 1975 | { 1976 | "code": "410000", 1977 | "name": "公用事业", 1978 | "index_code": "801160", 1979 | "children": [ 1980 | { 1981 | "code": "410100", 1982 | "name": "电力", 1983 | "index_code": "801161", 1984 | "children": [ 1985 | { 1986 | "code": "410101", 1987 | "name": "火电", 1988 | "index_code": "851611", 1989 | "children": [] 1990 | }, 1991 | { 1992 | "code": "410102", 1993 | "name": "水电", 1994 | "index_code": "851612", 1995 | "children": [] 1996 | }, 1997 | { 1998 | "code": "410103", 1999 | "name": "燃机发电", 2000 | "index_code": "851613", 2001 | "children": [] 2002 | }, 2003 | { 2004 | "code": "410104", 2005 | "name": "热电", 2006 | "index_code": "851614", 2007 | "children": [] 2008 | }, 2009 | { 2010 | "code": "410105", 2011 | "name": "新能源发电", 2012 | "index_code": "851615", 2013 | "children": [] 2014 | } 2015 | ] 2016 | }, 2017 | { 2018 | "code": "410200", 2019 | "name": "水务", 2020 | "index_code": "801164", 2021 | "children": [ 2022 | { 2023 | "code": "410201", 2024 | "name": "水务", 2025 | "index_code": "851621", 2026 | "children": [] 2027 | } 2028 | ] 2029 | }, 2030 | { 2031 | "code": "410300", 2032 | "name": "燃气", 2033 | "index_code": "801163", 2034 | "children": [ 2035 | { 2036 | "code": "410301", 2037 | "name": "燃气", 2038 | "index_code": "851631", 2039 | "children": [] 2040 | } 2041 | ] 2042 | }, 2043 | { 2044 | "code": "410400", 2045 | "name": "环保工程及服务", 2046 | "index_code": "801162", 2047 | "children": [ 2048 | { 2049 | "code": "410401", 2050 | "name": "环保工程及服务", 2051 | "index_code": "851641", 2052 | "children": [] 2053 | } 2054 | ] 2055 | } 2056 | ] 2057 | }, 2058 | { 2059 | "code": "420000", 2060 | "name": "交通运输", 2061 | "index_code": "801170", 2062 | "children": [ 2063 | { 2064 | "code": "420100", 2065 | "name": "港口", 2066 | "index_code": "801171", 2067 | "children": [ 2068 | { 2069 | "code": "420101", 2070 | "name": "港口", 2071 | "index_code": "851711", 2072 | "children": [] 2073 | } 2074 | ] 2075 | }, 2076 | { 2077 | "code": "420200", 2078 | "name": "高速公路", 2079 | "index_code": "801175", 2080 | "children": [ 2081 | { 2082 | "code": "420201", 2083 | "name": "高速公路", 2084 | "index_code": "851731", 2085 | "children": [] 2086 | } 2087 | ] 2088 | }, 2089 | { 2090 | "code": "420300", 2091 | "name": "公交", 2092 | "index_code": "801172", 2093 | "children": [ 2094 | { 2095 | "code": "420301", 2096 | "name": "公交", 2097 | "index_code": "851721", 2098 | "children": [] 2099 | } 2100 | ] 2101 | }, 2102 | { 2103 | "code": "420400", 2104 | "name": "航空运输", 2105 | "index_code": "801173", 2106 | "children": [ 2107 | { 2108 | "code": "420401", 2109 | "name": "航空运输", 2110 | "index_code": "851741", 2111 | "children": [] 2112 | } 2113 | ] 2114 | }, 2115 | { 2116 | "code": "420500", 2117 | "name": "机场", 2118 | "index_code": "801174", 2119 | "children": [ 2120 | { 2121 | "code": "420501", 2122 | "name": "机场", 2123 | "index_code": "851751", 2124 | "children": [] 2125 | } 2126 | ] 2127 | }, 2128 | { 2129 | "code": "420600", 2130 | "name": "航运", 2131 | "index_code": "801176", 2132 | "children": [ 2133 | { 2134 | "code": "420601", 2135 | "name": "航运", 2136 | "index_code": "851761", 2137 | "children": [] 2138 | } 2139 | ] 2140 | }, 2141 | { 2142 | "code": "420700", 2143 | "name": "铁路运输", 2144 | "index_code": "801177", 2145 | "children": [ 2146 | { 2147 | "code": "420701", 2148 | "name": "铁路运输", 2149 | "index_code": "851771", 2150 | "children": [] 2151 | } 2152 | ] 2153 | }, 2154 | { 2155 | "code": "420800", 2156 | "name": "物流", 2157 | "index_code": "801178", 2158 | "children": [ 2159 | { 2160 | "code": "420801", 2161 | "name": "物流", 2162 | "index_code": "851781", 2163 | "children": [] 2164 | } 2165 | ] 2166 | } 2167 | ] 2168 | }, 2169 | { 2170 | "code": "430000", 2171 | "name": "房地产", 2172 | "index_code": "801180", 2173 | "children": [ 2174 | { 2175 | "code": "430100", 2176 | "name": "房地产开发", 2177 | "index_code": "801181", 2178 | "children": [ 2179 | { 2180 | "code": "430101", 2181 | "name": "房地产开发", 2182 | "index_code": "851811", 2183 | "children": [] 2184 | } 2185 | ] 2186 | }, 2187 | { 2188 | "code": "430200", 2189 | "name": "园区开发", 2190 | "index_code": "801182", 2191 | "children": [ 2192 | { 2193 | "code": "430201", 2194 | "name": "园区开发", 2195 | "index_code": "851821", 2196 | "children": [] 2197 | } 2198 | ] 2199 | } 2200 | ] 2201 | }, 2202 | { 2203 | "code": "480000", 2204 | "name": "银行", 2205 | "index_code": "801780", 2206 | "children": [ 2207 | { 2208 | "code": "480100", 2209 | "name": "银行", 2210 | "index_code": "801192", 2211 | "children": [ 2212 | { 2213 | "code": "480101", 2214 | "name": "银行", 2215 | "index_code": "851911", 2216 | "children": [] 2217 | } 2218 | ] 2219 | } 2220 | ] 2221 | }, 2222 | { 2223 | "code": "490000", 2224 | "name": "非银金融", 2225 | "index_code": "801790", 2226 | "children": [ 2227 | { 2228 | "code": "490100", 2229 | "name": "证券", 2230 | "index_code": "801193", 2231 | "children": [ 2232 | { 2233 | "code": "490101", 2234 | "name": "证券", 2235 | "index_code": "851931", 2236 | "children": [] 2237 | } 2238 | ] 2239 | }, 2240 | { 2241 | "code": "490200", 2242 | "name": "保险", 2243 | "index_code": "801194", 2244 | "children": [ 2245 | { 2246 | "code": "490201", 2247 | "name": "保险", 2248 | "index_code": "851941", 2249 | "children": [] 2250 | } 2251 | ] 2252 | }, 2253 | { 2254 | "code": "490300", 2255 | "name": "多元金融", 2256 | "index_code": "801191", 2257 | "children": [ 2258 | { 2259 | "code": "490301", 2260 | "name": "多元金融", 2261 | "index_code": "851921", 2262 | "children": [] 2263 | } 2264 | ] 2265 | } 2266 | ] 2267 | }, 2268 | { 2269 | "code": "510000", 2270 | "name": "综合", 2271 | "index_code": "801230", 2272 | "children": [ 2273 | { 2274 | "code": "510100", 2275 | "name": "综合", 2276 | "index_code": "801231", 2277 | "children": [ 2278 | { 2279 | "code": "510101", 2280 | "name": "综合", 2281 | "index_code": "852311", 2282 | "children": [] 2283 | } 2284 | ] 2285 | } 2286 | ] 2287 | } 2288 | ] -------------------------------------------------------------------------------- /申银万国行业分类标准.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ramwin/china-public-data/558effa78547d3e212d95be4f3e1c43bf85422ec/申银万国行业分类标准.pdf --------------------------------------------------------------------------------