latLng.txt 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009
  1. import requests
  2. from urllib.request import urlopen
  3. import time
  4. import re
  5. import json
  6. import random
  7. def getip():
  8. ip = ['120.83.108.143:9999',
  9. '49.70.17.89:9999',
  10. '120.83.108.92:9999',
  11. '113.124.85.204:9999',
  12. '114.239.42.220:9999',
  13. '113.121.21.114:9999',
  14. '112.87.70.169:9999',
  15. '163.204.244.130:9999',
  16. '163.204.243.190:9999',
  17. '120.83.123.245:9999',
  18. '182.35.87.115:9999',
  19. '114.230.69.151:9999',
  20. '182.35.80.50:9999',
  21. '163.204.247.42:9999',
  22. '120.83.106.57:9999',
  23. '113.110.72.19:8118',
  24. '60.13.42.40:9999',
  25. '163.204.242.121:9999',
  26. '171.11.32.97:9999',
  27. '42.238.82.110:9999',
  28. '144.123.69.21:9999',
  29. '117.91.232.60:9999',
  30. '120.83.108.235:9999',
  31. '163.204.241.228:9999',
  32. '180.119.141.35:9999',
  33. '121.226.188.51:9999',
  34. '120.83.105.104:9999',
  35. '122.143.135.109:80',
  36. '113.121.189.45:9999',
  37. '58.253.152.250:9999',
  38. '58.253.152.244:9999',
  39. '112.85.148.25:9999',
  40. '112.87.68.157:9999',
  41. '120.83.105.171:9999',
  42. '58.22.177.154:9999',
  43. '182.34.36.235:9999',
  44. '121.233.251.154:9999',
  45. '120.83.111.107:9999',
  46. '112.85.131.15:9999',
  47. '115.53.37.158:9999',
  48. '113.103.233.163:9999',
  49. '1.198.73.84:9999',
  50. '1.197.203.214:9999',
  51. '106.110.195.56:9999',
  52. '1.197.204.225:9999',
  53. '171.11.33.32:9999',
  54. '180.154.173.175:8118',
  55. '36.248.132.245:9999',
  56. '139.227.162.32:8118',
  57. '218.76.253.201:61408',
  58. '119.176.171.43:9999',
  59. '122.190.230.151:61234',
  60. '115.219.104.177:8010',
  61. '27.42.168.46:48919',
  62. '117.63.151.127:8118',
  63. '113.58.232.234:808',
  64. '140.250.172.205:9999',
  65. '183.163.37.99:61234',
  66. '112.87.70.183:9999',
  67. '114.239.254.32:9999',
  68. '61.157.136.105:808',
  69. '114.239.250.115:9999',
  70. '220.178.185.89:61234',
  71. '114.239.253.51:9999',
  72. '112.85.131.53:9999',
  73. '60.255.139.167:808',
  74. '115.195.86.122:8118',
  75. '112.85.130.170:9999',
  76. '1.193.158.218:9999',
  77. '112.85.172.215:9999',
  78. '112.85.130.56:9999',
  79. '112.85.170.7:9999',
  80. '112.85.128.185:9999',
  81. '112.85.167.226:9999',
  82. '114.239.254.150:9999',
  83. '218.75.69.50:39590',
  84. '113.86.151.149:8118',
  85. '171.15.67.97:9999',
  86. '112.111.217.68:9999',
  87. '182.35.81.40:9999',
  88. '36.248.129.67:9999',
  89. '113.119.38.177:3128',
  90. '60.216.101.46:59351',
  91. '120.83.97.75:9999',
  92. '117.57.91.134:61234',
  93. '182.35.87.246:9999',
  94. '182.35.82.54:9999',
  95. '113.58.234.71:808',
  96. '114.104.131.247:808',
  97. '117.95.192.203:9999',
  98. '182.35.81.5:9999',
  99. '42.159.91.248:8080',
  100. '119.138.225.23:8118',
  101. '171.11.32.187:9999',
  102. '175.148.79.98:1133',
  103. '117.95.192.73:9999',
  104. '60.13.42.58:9999',
  105. '117.91.249.82:9999',
  106. '182.34.33.243:9999',
  107. '112.85.171.67:9999',
  108. '117.95.232.151:9999',
  109. '175.42.129.250:9999',
  110. '113.124.94.255:808',
  111. '182.35.82.107:9999',
  112. '163.204.244.135:9999',
  113. '120.83.105.88:9999',
  114. '182.34.35.192:9999',
  115. '182.34.37.10:9999',
  116. '163.204.247.104:9999',
  117. '183.166.21.128:9999',
  118. '171.11.179.66:9999',
  119. '113.116.89.77:8118',
  120. '163.204.245.201:9999',
  121. '163.204.240.181:9999',
  122. '163.204.243.187:9999',
  123. '123.169.113.59:9999',
  124. '120.83.120.217:9999',
  125. '163.204.244.78:9999',
  126. '120.83.100.187:9999',
  127. '1.197.204.61:9999',
  128. '113.121.189.112:9999',
  129. '223.215.96.209:808',
  130. '163.204.243.29:9999',
  131. '163.204.247.225:9999',
  132. '163.204.244.99:9999',
  133. '113.121.189.172:9999',
  134. '117.95.214.132:9999',
  135. '120.83.109.87:9999',
  136. '182.34.34.30:9999',
  137. '1.198.42.210:9999',
  138. '117.95.232.75:9999',
  139. '163.204.240.143:9999',
  140. '123.169.119.253:9999',
  141. '120.83.107.161:9999',
  142. '58.253.157.134:9999',
  143. '120.83.104.64:9999',
  144. '112.87.69.106:9999',
  145. '182.116.225.23:9999',
  146. '60.13.42.178:9999',
  147. '123.163.96.169:9999',
  148. '115.53.17.52:9999',
  149. '171.12.41.55:9999',
  150. '60.13.42.147:9999',
  151. '120.83.105.216:9999',
  152. '112.87.68.39:9999',
  153. '112.85.150.16:9999',
  154. '182.34.36.113:9999',
  155. '123.163.96.79:9999',
  156. '163.204.243.252:9999',
  157. '163.204.241.255:9999',
  158. '112.85.165.3:9999',
  159. '112.85.167.186:9999',
  160. '112.85.165.80:9999',
  161. '58.253.157.187:9999',
  162. '60.13.42.166:9999',
  163. '117.95.162.58:9999',
  164. '60.13.42.172:9999',
  165. '122.193.245.197:9999',
  166. '120.83.109.94:9999',
  167. '114.239.29.228:9999',
  168. '120.83.122.102:9999',
  169. '123.163.96.80:9999',
  170. '163.204.245.218:9999',
  171. '114.239.253.191:9999',
  172. '112.87.70.6:9999',
  173. '120.83.101.19:9999',
  174. '163.204.243.120:9999',
  175. '113.124.93.227:9999',
  176. '112.85.128.245:9999',
  177. '222.89.32.132:9999',
  178. '123.169.126.105:9999',
  179. '60.13.42.228:9999',
  180. '112.85.164.93:9999',
  181. '120.83.108.47:9999',
  182. '58.253.155.134:9999',
  183. '114.239.29.68:9999',
  184. '182.35.87.82:9999',
  185. '1.197.203.209:9999',
  186. '122.193.244.125:9999',
  187. '27.43.185.130:9999',
  188. '163.204.246.117:9999',
  189. '117.28.97.111:9999',
  190. '182.34.36.119:9999',
  191. '117.95.192.60:9999',
  192. '120.83.110.1:9999',
  193. '112.87.70.159:9999',
  194. '122.4.49.113:9999',
  195. '1.197.16.134:9999',
  196. '120.83.105.144:9999',
  197. '112.87.71.235:9999',
  198. '113.124.93.0:9999',
  199. '144.123.68.224:23788',
  200. '120.84.100.209:9999',
  201. '112.85.169.49:9999',
  202. '120.83.111.147:9999',
  203. '183.166.20.245:9999',
  204. '163.204.241.199:9999',
  205. '120.83.97.34:9999',
  206. '120.83.109.230:9999',
  207. '58.253.154.234:9999',
  208. '120.83.123.228:9999',
  209. '117.28.96.51:9999',
  210. '120.83.107.31:9999',
  211. '120.83.108.70:9999',
  212. '182.34.37.152:9999',
  213. '42.238.90.246:9999',
  214. '117.64.149.17:808',
  215. '163.204.245.170:9999',
  216. '58.253.154.113:9999',
  217. '123.163.96.240:9999',
  218. '60.13.42.20:9999',
  219. '114.239.0.100:808',
  220. '123.163.96.118:9999',
  221. '120.83.108.104:9999',
  222. '60.13.42.124:9999',
  223. '1.197.203.168:9999',
  224. '120.84.100.253:9999',
  225. '58.253.153.246:9999',
  226. '112.85.131.61:9999',
  227. '58.253.156.22:9999',
  228. '115.219.109.225:8010',
  229. '120.83.110.224:9999',
  230. '115.53.38.237:9999',
  231. '60.13.42.165:9999',
  232. '180.119.141.149:9999',
  233. '125.73.220.18:31036',
  234. '115.231.5.230:44524',
  235. '113.128.28.203:9999',
  236. '113.128.120.200:9999',
  237. '119.5.152.239:61234',
  238. '113.128.9.48:9999',
  239. '113.128.30.18:9999',
  240. '121.224.4.63:61234',
  241. '113.128.122.101:9999',
  242. '123.245.12.10:8118',
  243. '121.61.89.253:61234',
  244. '182.35.82.180:9999',
  245. '183.165.153.8:61234',
  246. '117.95.192.249:9999',
  247. '221.225.43.111:9999',
  248. '221.225.43.246:9999',
  249. '117.95.175.87:9999',
  250. '117.95.199.221:9999',
  251. '221.225.43.205:9999',
  252. '60.13.42.9:9999',
  253. '117.85.49.106:9999',
  254. '112.85.165.140:9999',
  255. '113.128.31.55:61234',
  256. '175.153.90.242:61234',
  257. '49.72.99.106:61234',
  258. '182.34.21.149:9999',
  259. '1.198.111.236:9999',
  260. '112.87.64.10:9999',
  261. '60.13.42.216:9999',
  262. '60.13.42.202:9999',
  263. '175.42.122.191:9999',
  264. '163.204.241.10:9999',
  265. '121.61.29.65:61234',
  266. '106.75.8.141:808',
  267. '112.87.69.176:9999',
  268. '123.12.104.109:8118',
  269. '1.198.72.208:9999',
  270. '36.248.132.208:9999',
  271. '60.13.42.55:9999',
  272. '120.83.107.189:9999',
  273. '117.28.97.135:9999',
  274. '117.28.97.130:9999',
  275. '175.43.57.4:9999',
  276. '182.35.84.3:9999',
  277. '58.34.118.95:8118',
  278. '113.120.32.73:9999',
  279. '117.95.195.6:9999',
  280. '113.120.36.154:9999',
  281. '171.13.103.159:9999',
  282. '182.35.85.153:9999',
  283. '117.95.195.138:9999',
  284. '112.85.129.195:9999',
  285. '60.13.42.119:9999',
  286. '27.43.190.102:9999',
  287. '117.95.214.114:9999',
  288. '117.95.192.105:9999',
  289. '163.204.240.101:9999',
  290. '112.85.166.255:9999',
  291. '1.198.73.228:9999',
  292. '163.204.247.116:9999',
  293. '163.204.244.36:9999',
  294. '163.204.247.129:9999',
  295. '175.150.79.193:1133',
  296. '112.85.130.157:9999',
  297. '58.253.157.156:9999',
  298. '163.204.242.225:8888',
  299. '182.35.86.103:9999',
  300. '123.163.97.144:9999',
  301. '163.204.243.195:9999',
  302. '117.95.198.88:9999',
  303. '163.204.247.61:9999',
  304. '123.163.97.10:9999',
  305. '163.204.247.56:9999',
  306. '120.83.104.97:9999',
  307. '60.13.42.224:9999',
  308. '60.166.87.171:808',
  309. '163.204.242.143:9999',
  310. '60.13.42.168:9999',
  311. '163.204.243.32:9999',
  312. '58.253.156.36:9999',
  313. '163.204.95.106:9999',
  314. '163.204.246.34:9999',
  315. '163.204.247.52:9999',
  316. '112.85.170.188:9999',
  317. '60.13.42.41:9999',
  318. '182.35.84.77:9999',
  319. '112.87.70.218:9999',
  320. '114.239.255.78:9999',
  321. '163.204.240.108:9999',
  322. '163.204.247.134:9999',
  323. '60.13.42.51:9999',
  324. '112.85.131.5:9999',
  325. '163.204.243.129:9999',
  326. '60.13.42.139:9999',
  327. '60.13.42.24:9999',
  328. '120.83.108.95:9999',
  329. '163.204.244.180:9999',
  330. '117.28.96.101:9999',
  331. '163.204.241.218:9999',
  332. '121.226.214.126:9999',
  333. '163.204.241.173:9999',
  334. '117.95.232.42:9999',
  335. '123.169.123.195:9999',
  336. '163.204.244.64:9999',
  337. '112.85.164.225:9999',
  338. '182.35.82.62:9999',
  339. '60.13.42.141:9999',
  340. '182.35.86.136:9999',
  341. '58.253.158.202:9999',
  342. '120.83.110.64:9999',
  343. '112.85.168.251:9999',
  344. '163.204.246.226:9999',
  345. '117.64.149.210:808',
  346. '49.70.64.115:35661',
  347. '144.123.69.204:37707',
  348. '113.120.60.247:43587',
  349. '163.204.247.75:9999',
  350. '1.198.73.234:9999',
  351. '58.253.155.147:9999',
  352. '114.239.248.123:9999',
  353. '163.204.240.30:9999',
  354. '163.204.242.215:9999',
  355. '122.193.246.104:9999',
  356. '117.95.232.149:9999',
  357. '112.87.71.78:9999',
  358. '163.204.241.48:9999',
  359. '60.13.42.138:9999',
  360. '171.13.137.95:9999',
  361. '182.116.230.125:9999',
  362. '114.239.29.222:9999',
  363. '120.83.108.200:9999',
  364. '120.83.111.217:9999',
  365. '120.83.120.48:9999',
  366. '60.13.42.53:9999',
  367. '114.239.145.197:808',
  368. '106.111.53.190:9999',
  369. '120.84.102.103:9999',
  370. '58.253.159.58:9999',
  371. '113.121.23.119:9999',
  372. '58.253.158.9:9999',
  373. '27.43.185.133:9999',
  374. '113.124.85.211:9999',
  375. '113.12.202.50:40498',
  376. '163.204.242.32:9999',
  377. '112.85.168.214:9999',
  378. '112.85.131.55:9999',
  379. '112.87.67.122:9999',
  380. '113.121.21.200:53128',
  381. '120.83.104.187:9999',
  382. '123.169.34.216:9999',
  383. '112.85.166.181:9999',
  384. '27.43.186.70:9999',
  385. '123.163.122.55:9999',
  386. '58.253.153.90:9999',
  387. '113.120.35.70:9999',
  388. '182.116.225.6:9999',
  389. '182.116.235.142:9999',
  390. '163.204.244.246:9999',
  391. '113.120.61.157:49659',
  392. '182.116.231.211:9999',
  393. '113.120.61.177:9999',
  394. '182.116.237.110:9999',
  395. '182.116.237.41:9999',
  396. '113.100.9.66:61234',
  397. '183.166.103.42:9999',
  398. '163.204.246.244:9999',
  399. '119.176.197.107:9999',
  400. '49.86.181.7:9999',
  401. '112.85.164.97:9999',
  402. '1.193.246.161:9999',
  403. '112.85.130.165:9999',
  404. '119.254.94.93:46323',
  405. '223.215.176.123:808',
  406. '114.239.29.19:9999',
  407. '183.166.144.235:808',
  408. '114.239.110.110:9999',
  409. '163.204.240.63:9999',
  410. '180.168.13.26:8000',
  411. '222.128.9.235:59593',
  412. '218.59.193.14:47138',
  413. '121.226.74.242:808',
  414. '60.13.42.230:9999',
  415. '122.193.246.121:9999',
  416. '120.84.102.74:9999',
  417. '110.189.152.86:52277',
  418. '122.137.185.152:8118',
  419. '60.217.64.237:31923',
  420. '116.62.120.38:3128',
  421. '144.123.69.51:9999',
  422. '112.85.172.238:9999',
  423. '182.35.86.34:9999',
  424. '163.204.246.62:9999',
  425. '163.204.247.203:9999',
  426. '163.204.243.253:9999',
  427. '112.85.172.112:18118',
  428. '112.85.167.65:9999',
  429. '112.85.174.173:9999',
  430. '112.85.174.23:9999',
  431. '112.85.165.192:9999',
  432. '123.169.119.167:9999',
  433. '123.169.119.19:9999',
  434. '123.169.118.234:9999',
  435. '121.226.3.75:808',
  436. '59.32.37.82:8010',
  437. '123.169.116.163:9999',
  438. '123.169.112.89:9999',
  439. '123.169.119.254:9999',
  440. '123.169.114.124:9999',
  441. '58.253.155.89:9999',
  442. '163.204.241.35:9999',
  443. '58.253.154.219:9999',
  444. '123.169.35.119:45592',
  445. '113.121.23.154:9999',
  446. '163.204.246.162:9999',
  447. '60.13.42.67:9999',
  448. '1.197.204.238:9999',
  449. '112.85.128.48:9999',
  450. '120.83.105.165:9999',
  451. '120.83.107.124:9999',
  452. '163.204.242.142:9999',
  453. '163.204.240.140:9999',
  454. '60.13.42.3:9999',
  455. '120.83.97.38:9999',
  456. '42.238.81.226:9999',
  457. '163.204.244.239:9999',
  458. '182.35.80.92:9999',
  459. '163.204.246.152:9999',
  460. '123.169.34.219:9999',
  461. '222.89.32.186:9999',
  462. '163.204.242.252:9999',
  463. '1.197.16.23:9999',
  464. '112.85.131.160:9999',
  465. '27.43.185.183:9999',
  466. '113.121.20.145:9999',
  467. '117.64.149.65:808',
  468. '182.34.32.5:9999',
  469. '163.204.242.183:9999',
  470. '112.85.175.129:9999',
  471. '163.204.240.175:9999',
  472. '163.204.243.82:9999',
  473. '182.34.35.126:9999',
  474. '120.83.107.108:9999',
  475. '58.253.152.7:9999',
  476. '120.83.108.97:9999',
  477. '121.233.251.25:9999',
  478. '163.204.245.59:9999',
  479. '163.204.247.191:9999',
  480. '163.204.244.93:9999',
  481. '163.204.242.64:9999',
  482. '163.204.247.5:9999',
  483. '122.193.244.221:9999',
  484. '163.204.245.182:9999',
  485. '58.253.154.42:9999',
  486. '120.83.108.216:9999',
  487. '163.204.243.28:9999',
  488. '163.204.247.205:9999',
  489. '163.204.241.9:9999',
  490. '163.204.244.43:9999',
  491. '163.204.246.120:9999',
  492. '112.85.164.18:9999',
  493. '182.34.33.98:9999',
  494. '114.239.146.191:808',
  495. '120.83.110.134:9999',
  496. '163.204.242.99:9999',
  497. '60.13.42.171:9999',
  498. '163.204.243.54:9999',
  499. '163.204.242.131:9999',
  500. '113.121.21.132:9999',
  501. '163.204.247.111:9999',
  502. '163.204.247.105:9999',
  503. '120.83.110.247:9999',
  504. '120.83.105.233:9999',
  505. '163.204.243.90:9999',
  506. '60.13.42.17:9999',
  507. '163.204.247.115:9999',
  508. '120.83.99.99:808',
  509. '123.163.97.96:9999',
  510. '58.253.152.95:9999',
  511. '120.83.96.21:9999',
  512. '163.204.240.136:9999',
  513. '125.105.106.24:61234',
  514. '123.163.181.240:9999',
  515. '112.85.168.48:9999',
  516. '49.89.103.6:9999',
  517. '60.13.42.131:9999',
  518. '121.226.188.21:9999',
  519. '113.121.37.122:808',
  520. '163.204.246.33:9999',
  521. '27.43.191.252:9999',
  522. '163.204.241.194:9999',
  523. '120.83.106.80:9999',
  524. '114.239.251.91:9999',
  525. '182.116.239.125:9999',
  526. '120.83.96.55:808',
  527. '163.204.242.38:9999',
  528. '182.35.81.30:9999',
  529. '163.204.246.23:9999',
  530. '114.239.144.54:808',
  531. '113.124.86.187:9999',
  532. '113.121.20.175:9999',
  533. '112.85.169.30:9999',
  534. '27.43.187.33:9999',
  535. '60.13.42.238:9999',
  536. '113.121.41.230:20013',
  537. '123.169.122.70:9999',
  538. '163.204.245.151:9999',
  539. '120.83.108.158:9999',
  540. '163.204.242.161:9999',
  541. '163.204.242.3:9999',
  542. '163.204.245.184:9999',
  543. '120.83.111.39:9999',
  544. '182.35.84.6:9999',
  545. '106.42.48.229:9999',
  546. '1.197.204.248:9999',
  547. '112.87.68.90:9999',
  548. '114.239.253.118:9999',
  549. '163.204.243.11:9999',
  550. '58.58.213.55:8888',
  551. '120.83.105.127:9999',
  552. '163.204.241.41:9999',
  553. '49.89.103.147:9999',
  554. '163.204.243.4:9999',
  555. '163.204.242.108:9999',
  556. '113.121.22.117:9999',
  557. '163.204.246.213:9999',
  558. '144.123.69.130:9999',
  559. '163.204.243.251:9999',
  560. '222.89.32.190:9999',
  561. '163.204.242.177:9999',
  562. '60.169.114.242:808',
  563. '58.253.156.133:9999',
  564. '120.83.122.11:808',
  565. '171.11.178.125:9999',
  566. '182.35.81.74:9999',
  567. '163.204.243.70:9999',
  568. '27.43.191.13:9999',
  569. '163.204.244.68:9999',
  570. '163.204.243.218:9999',
  571. '120.83.98.252:9999',
  572. '114.239.172.222:9999',
  573. '113.120.35.94:9999',
  574. '182.35.82.71:9999',
  575. '163.204.242.31:9999',
  576. '163.204.242.159:9999',
  577. '120.83.107.252:9999',
  578. '112.85.170.145:9999',
  579. '117.95.195.216:9999',
  580. '163.204.245.30:9999',
  581. '117.95.162.6:9999',
  582. '49.89.103.226:9999',
  583. '49.89.222.255:9999',
  584. '113.128.8.125:25389',
  585. '115.221.118.196:61234',
  586. '114.239.251.92:9999',
  587. '117.85.105.66:9999',
  588. '58.254.220.116:52470',
  589. '112.87.65.199:9999',
  590. '1.193.244.197:9999',
  591. '221.218.102.146:33323',
  592. '163.204.243.163:9999',
  593. '1.193.158.108:9999',
  594. '113.103.226.221:61234',
  595. '182.116.238.39:9999',
  596. '60.13.42.189:9999',
  597. '101.27.20.52:61234',
  598. '171.15.173.103:9999',
  599. '171.15.49.100:9999',
  600. '115.53.16.229:9999',
  601. '115.53.35.245:9999',
  602. '120.83.107.253:9999',
  603. '112.87.69.170:9999',
  604. '171.15.174.238:9999',
  605. '115.53.19.183:9999',
  606. '115.53.21.87:9999',
  607. '1.193.244.194:9999',
  608. '175.153.90.140:61234',
  609. '120.83.97.158:9999',
  610. '112.85.170.88:9999',
  611. '175.148.70.18:1133',
  612. '58.253.156.63:9999',
  613. '175.42.68.158:30089',
  614. '58.253.155.138:9999',
  615. '119.176.171.47:9999',
  616. '221.206.100.133:34073',
  617. '120.83.106.234:9999',
  618. '120.83.101.248:9999',
  619. '120.83.108.152:9999',
  620. '112.87.69.41:9999',
  621. '112.85.130.22:9999',
  622. '120.83.102.246:9999',
  623. '113.120.35.174:9999',
  624. '163.204.243.199:9999',
  625. '163.204.244.31:9999',
  626. '163.204.240.64:9999',
  627. '60.13.42.142:9999',
  628. '163.204.246.205:9999',
  629. '60.13.42.243:9999',
  630. '112.85.150.248:9999',
  631. '163.204.244.115:9999',
  632. '42.238.80.204:9999',
  633. '58.253.156.81:9999',
  634. '113.124.85.217:9999',
  635. '182.35.80.33:9999',
  636. '117.95.232.74:9999',
  637. '60.13.42.200:9999',
  638. '120.83.108.127:9999',
  639. '120.83.104.95:9999',
  640. '163.204.242.173:9999',
  641. '222.89.32.171:9999',
  642. '58.253.152.101:9999',
  643. '112.87.71.187:9999',
  644. '222.89.32.177:9999',
  645. '117.28.96.229:9999',
  646. '117.28.96.224:9999',
  647. '182.35.84.132:9999',
  648. '163.204.247.24:9999',
  649. '163.204.241.79:9999',
  650. '163.204.243.191:9999',
  651. '60.13.42.129:9999',
  652. '117.28.96.210:9999',
  653. '112.87.69.86:9999',
  654. '122.193.246.179:9999',
  655. '120.83.122.244:9999',
  656. '60.13.42.64:9999',
  657. '60.13.42.105:9999',
  658. '112.85.164.29:9999',
  659. '182.34.27.4:9999',
  660. '112.85.131.62:9999',
  661. '120.83.102.119:9999',
  662. '60.13.42.220:9999',
  663. '171.11.178.240:9999',
  664. '60.13.42.241:9999',
  665. '49.70.48.174:9999',
  666. '60.13.42.91:9999',
  667. '60.13.42.104:9999',
  668. '112.85.130.197:9999',
  669. '180.119.141.209:22646',
  670. '117.64.149.221:808',
  671. '60.13.42.97:9999',
  672. '120.83.123.223:9999',
  673. '58.253.152.145:9999',
  674. '163.204.243.243:9999',
  675. '182.34.34.124:9999',
  676. '60.13.42.27:9999',
  677. '182.34.33.2:9999',
  678. '1.197.10.24:9999',
  679. '120.83.123.143:9999',
  680. '120.83.106.42:9999',
  681. '182.35.81.245:9999',
  682. '113.121.65.151:9999',
  683. '60.13.42.63:9999',
  684. '183.166.103.134:9999',
  685. '113.65.5.14:8118',
  686. '49.70.89.166:9999',
  687. '182.35.85.209:9999',
  688. '60.13.42.60:9999',
  689. '163.204.240.73:9999',
  690. '120.83.106.172:9999',
  691. '222.89.32.139:9999',
  692. '112.87.68.248:9999',
  693. '112.85.173.108:9999',
  694. '60.13.42.82:9999',
  695. '163.204.240.194:9999',
  696. '58.253.157.32:9999',
  697. '42.238.85.216:9999',
  698. '120.83.107.52:9999',
  699. '120.83.110.50:9999',
  700. '182.34.35.139:9999',
  701. '112.87.69.44:9999',
  702. '120.84.103.176:9999',
  703. '60.13.42.247:9999',
  704. '113.121.23.190:9999',
  705. '115.53.18.40:9999',
  706. '114.239.151.118:9999',
  707. '113.121.20.107:9999',
  708. '163.204.243.73:9999',
  709. '163.204.240.207:9999',
  710. '117.95.198.105:9999',
  711. '163.204.243.115:9999',
  712. '163.204.244.42:9999',
  713. '58.253.157.108:9999',
  714. '115.239.63.56:61234',
  715. '42.238.85.20:9999',
  716. '114.239.3.138:9999',
  717. '1.198.73.193:9999',
  718. '112.85.164.192:9999',
  719. '120.83.103.129:9999',
  720. '27.43.185.20:9999',
  721. '112.87.71.153:9999',
  722. '122.4.51.179:9999',
  723. '163.204.246.224:9999',
  724. '58.253.152.136:9999',
  725. '60.13.42.96:9999',
  726. '112.87.69.76:9999',
  727. '122.193.246.162:9999',
  728. '60.13.42.175:9999',
  729. '175.155.142.235:1133',
  730. '218.24.16.198:43620',
  731. '121.226.214.178:9999',
  732. '115.53.32.87:9999',
  733. '60.13.42.115:9999',
  734. '60.13.42.155:9999',
  735. '120.83.104.213:9999',
  736. '114.239.110.112:9999',
  737. '42.238.90.250:9999',
  738. '113.124.87.58:9999',
  739. '120.83.109.194:9999',
  740. '120.83.107.19:9999',
  741. '112.85.170.61:9999',
  742. '183.45.79.193:8118',
  743. '27.43.184.187:9999',
  744. '60.13.42.81:9999',
  745. '182.35.81.96:9999',
  746. '113.128.120.53:61234',
  747. '120.83.111.206:9999',
  748. '113.121.21.72:9999',
  749. '120.83.108.72:9999',
  750. '123.169.126.72:9999',
  751. '163.204.240.190:9999',
  752. '163.204.245.47:9999',
  753. '120.83.100.23:9999',
  754. '182.34.36.201:9999',
  755. '120.83.109.142:9999',
  756. '175.42.158.144:9999',
  757. '120.83.96.28:9999',
  758. '117.80.4.174:808',
  759. '182.34.34.45:9999',
  760. '58.253.158.141:9999',
  761. '112.85.129.84:9999',
  762. '120.83.108.57:9999',
  763. '120.83.96.16:9999',
  764. '60.13.42.8:9999',
  765. '60.13.42.132:9999',
  766. '120.83.107.225:9999',
  767. '58.253.155.110:9999',
  768. '60.13.42.98:9999',
  769. '113.121.21.176:9999',
  770. '60.13.42.49:9999',
  771. '163.204.246.161:9999',
  772. '171.11.32.219:9999',
  773. '117.91.250.112:9999',
  774. '114.239.248.61:9999',
  775. '49.86.181.179:9999',
  776. '120.83.107.12:9999',
  777. '163.204.242.23:9999',
  778. '115.221.120.154:28160',
  779. '49.70.64.164:9999',
  780. '114.239.110.243:9999',
  781. '112.85.149.131:9999',
  782. '182.35.87.39:9999',
  783. '58.253.154.174:9999',
  784. '115.202.156.187:39589',
  785. '117.80.92.168:9999',
  786. '112.85.129.241:9999',
  787. '120.83.109.61:9999',
  788. '182.35.86.155:9999',
  789. '58.253.157.133:9999',
  790. '123.52.150.204:9999',
  791. '112.85.171.70:9999',
  792. '120.83.99.88:9999',
  793. '49.70.11.193:61234',
  794. '114.217.218.229:8118',
  795. '60.13.42.92:9999',
  796. '113.58.232.159:22',
  797. '163.204.243.105:9999',
  798. '112.85.166.189:9999',
  799. '123.163.96.196:9999',
  800. '175.155.139.112:1133',
  801. '221.6.138.154:30893',
  802. '36.248.133.213:9999',
  803. '120.83.103.35:808',
  804. '163.204.247.219:9999',
  805. '36.250.156.11:9999',
  806. '182.35.80.82:9999',
  807. '122.193.246.141:9999',
  808. '182.35.82.115:9999',
  809. '58.20.79.188:8118',
  810. '163.204.245.254:9999',
  811. '113.120.34.108:9999',
  812. '175.11.195.119:8118',
  813. '121.233.226.97:9999',
  814. '163.204.245.37:9999',
  815. '182.116.225.142:9999',
  816. '120.83.107.73:9999',
  817. '112.85.130.10:9999',
  818. '117.95.200.238:9999',
  819. '113.124.95.153:9999',
  820. '60.13.42.152:9999',
  821. '163.204.245.252:9999',
  822. '120.83.111.142:9999',
  823. '1.197.203.178:9999',
  824. '60.13.42.226:9999',
  825. '182.34.33.215:9999',
  826. '182.34.35.117:9999',
  827. '120.83.110.175:9999',
  828. '112.85.167.231:9999',
  829. '175.155.141.252:1133',
  830. '117.28.96.212:9999',
  831. '163.204.247.240:9999',
  832. '1.198.73.137:9999',
  833. '163.204.242.26:9999',
  834. '112.87.70.147:9999',
  835. '112.85.167.250:9999',
  836. '222.89.32.157:9999',
  837. '60.13.42.234:9999',
  838. '163.204.240.8:9999',
  839. '113.124.86.15:9999',
  840. '60.13.42.76:9999',
  841. '1.199.31.22:9999',
  842. '123.52.43.64:8118',
  843. '112.85.131.219:9999',
  844. '112.85.165.194:9999',
  845. '120.83.108.113:9999',
  846. '163.204.245.229:9999',
  847. '114.239.253.224:9999',
  848. '120.83.121.35:9999',
  849. '1.198.73.27:9999',
  850. '182.34.21.227:9999',
  851. '163.204.242.1:9999',
  852. '112.85.131.175:9999',
  853. '49.70.85.92:9999',
  854. '120.83.102.140:9999',
  855. '117.28.97.7:9999',
  856. '182.34.33.117:9999',
  857. '180.116.216.159:8118',
  858. '163.204.244.168:9999',
  859. '163.204.242.60:9999',
  860. '222.72.166.235:53281',
  861. '163.204.242.244:9999',
  862. '182.34.37.133:9999',
  863. '163.204.241.12:9999',
  864. '163.204.240.146:9999',
  865. '60.13.42.12:9999',
  866. '117.95.232.247:9999',
  867. '163.204.244.224:9999',
  868. '163.204.245.241:9999',
  869. '182.34.36.178:9999',
  870. '112.85.128.142:9999',
  871. '120.83.99.165:9999',
  872. '114.239.249.75:9999',
  873. '171.11.33.249:9999',
  874. '101.27.20.62:61234',
  875. '163.204.243.111:9999',
  876. '163.204.243.201:9999',
  877. '113.121.21.123:808',
  878. '113.120.32.136:9999',
  879. '182.35.81.134:9999',
  880. '112.85.167.70:9999',
  881. '60.13.42.15:9999',
  882. '113.124.84.131:9999',
  883. '144.255.49.46:9999',
  884. '120.83.111.71:9999',
  885. '163.204.242.253:8118',
  886. '163.204.245.146:9999',
  887. '163.204.242.87:9999',
  888. '1.197.204.41:9999',
  889. '182.34.33.156:9999',
  890. '163.204.244.131:9999',
  891. '112.85.165.212:9999',
  892. '60.13.42.149:9999',
  893. '113.121.22.8:9999',
  894. '1.197.204.80:9999',
  895. '49.70.95.209:9999',
  896. '163.204.247.37:9999',
  897. '180.107.24.148:8118',
  898. '163.204.245.15:9999',
  899. '113.124.94.158:9999',
  900. '120.83.103.153:9999',
  901. '163.204.242.41:9999',
  902. '58.253.157.209:9999',
  903. '106.110.212.115:9999',
  904. '163.204.247.89:9999',
  905. '163.204.243.15:9999',
  906. '1.197.11.57:9999',
  907. '163.204.244.162:9999'
  908. ]
  909. b = random.randint(0,899)
  910. print("ip:"+str(b))
  911. return ip[b]
  912. def getagent():
  913. list1 = [
  914. 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835.163 Safari/535.1',
  915. 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0) Gecko/20100101 Firefox/6.0',
  916. 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/534.50 (KHTML, like Gecko) Version/5.1 Safari/534.50',
  917. 'Opera/9.80 (Windows NT 6.1; U; zh-cn) Presto/2.9.168 Version/11.50',
  918. 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36',
  919. 'Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB7.0)',
  920. 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)',
  921. 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)',
  922. 'Mozilla/5.0 (Windows; U; Windows NT 6.1; ) AppleWebKit/534.12 (KHTML, like Gecko) Maxthon/3.0 Safari/534.12',
  923. 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E)']
  924. a=random.randint(0, 9)
  925. return list1[a]
  926. def getak():
  927. list = ['xjX82RujZNuOPLjhLPdSD4aoYzHYKI3g',
  928. 'F7ok6MV4sIr8K7TM1sPMvteRhooK449D',
  929. '2eG6QYsivxiAH9WHBFC8Bzdm8WaOev3v',
  930. 'Y0dvBwcyUMbxwvGNa3QM7pHZ43EKFxLY',
  931. 'lqjDP80nHetU8nR4difirP1C2Pdnt1B7',
  932. '3l1qePIyS0rOZPbSBI1jT5cVGGPwf8LG',
  933. 'XFBV87fXqiOWbHyLE0tanBViwMHDVkZH',
  934. 'r0a1bHfSabDRqxjbUxMkhUK8Z1wYEiSB',
  935. 'GTWZwuHu3Gv2KR5EdKW0lwDLAKPNSm9I',
  936. 'hnhLTrxaZPI7jFkIkqA1TuLUWWmHV7Q1']
  937. b = random.randint(0,9)
  938. ak = list[b]
  939. return ak
  940. def gettemp(url,headers):
  941. proxies = {'http:':getip()}
  942. re = requests.get(url, headers,timeout=30,proxies = proxies) # 设置timeout30秒,防止百度屏蔽,如果被屏蔽就等30秒
  943. # print(re.text)
  944. temp = json.loads(re.text)
  945. return temp
  946. def getlatlng(address):
  947. ak = getak()
  948. url = "http://api.map.baidu.com/place/v2/search?ak=%s&output=json&query=%s&page_size=10&page_num=0&scope=1&region=全国&mcode=F5:3E:p06:3E:FC:E8:ED:19:60:2E:99:63:D8:78:85:2E:EB:12:9D:BE;com.mikyou.maptest" %(ak,address)
  949. print(url)
  950. headers = {
  951. 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
  952. 'Cookie':'BAIDUID=3B5A367D596AA7756BD8D5726C4E477B:FG=1; BIDUPSID=3B5A367D596AA7756BD8D5726C4E477B; PSTM=1564991667; BDUSS=pTZnJCMXhCeGxUNUlkR0VzN1RpWlJPQ3Z5cHNWa1BZOU5aQVVHTDQ5aVFaSFJkSUFBQUFBJCQAAAAAAAAAAAEAAABcmnx4zOyy0NChsOW1ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJDXTF2Q10xdbG; BDORZ=B490B5EBF6F3CD402E515D22BCDA1598; BDSFRCVID=5cIOJeC62rnI903w_ernMZDBvm20TDJTH6aoXWdBCJE-XeVP9l2_EG0Pex8g0Ku-TBoLogKK3gOTH4DF_2uxOjjg8UtVJeC6EG0P3J; H_BDCLCKID_SF=tRk8oDKhJCvbfP0k-tT85tP8qxby26P8W25eaJ5n0-nnhp-w2RjbKpoBLmcZa4Jhtbn0hU7FKKnDMP0Ry6CajTcXjHLtqbbfb-oKWJca2bK_Hn7zeTOpMntpbtbmhU-e3n5ELt3bLC5JOKDzj-o-j-FRBP62qPDfbb7ZVDD5fC_hhDKr5nJbq4_HMloWKC62aKDsb4cn-hcqEpO9QTbUeJIB5p-f2h-L0GR334L22xnrOR89-6JbDUThDGADtjkfJbKsW4P85-ctJbv6hKTjhPrMQGJdWMT-0bFHBRjSMfQ-fPODhp3YWx0uKMoiJMrnBan7_JjOBJ6JoDTjjh5n5lT3jU6dXxQxtNR7XInjtpvhHlTwhp3obUPUDUJ9LUkJ3gcdot5yBbc8eIna5hjkbfJBQttjQTJZfJueoIIaJCKhbnbGhCIaj6JH-UnLqM6lfgOZ0l8KtqjcSloKjRJ5b5FyXJ6RL5v-0HOi_I3mWIQHDIP43lQ20pKdef6xXqbgJgO4KKJxWpCWeIJoj-5HyxFzhUJiB5JMBan7_pbIXKohJh7FM4tW3J0ZyxomtfQxtN4eaDFhtIKbMI_wjTRb5nbH-xQEanQKM6IX3b7Ef-jssh7_bf--D4uJWbjKBJbe5TvH2xcgQKn8qxj25J5xy5K_hU7IL-ILBm5f2-o5M4JiSpTHQT3mMRvbbN3i-CrwKJu8Wb3cWKOJ8UbSjMOPBTD02-nBat-OQ6npaJ5nJq5nhMtRy6CajTcXjHLtqbbfb-oKWJca2bK_Hn7zePAaXbtpbtbmhU-e3n5ELt372DTrOCnOjUo-j-FRBP62qPDfbb7ZVDDhtCtWbD0wenJb5ICVbfrhK46MHD7yWCkaKhTcOR5Jj65Khxc-Dabfy-QHaejzKpoKaC_2Shb_3MA--t4R3UOG3MT4HGb--ftXaIorsq0x0-oWe-bQyp_LLUjyBIOMahkb5h7xOKbeQlPK5JkgMx6MqpQJQeQ-5KQN3KJmhpFu-n5jHjjWDaLj3H; delPer=0; PSINO=6; ZD_ENTRY=empty; H_PS_PSSID=1444_21126_20697_29523_29521_29099_29567_28839_29221_29460',
  953. 'Host':'api.map.baidu.com',
  954. 'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.100 Safari/537.36'
  955. }
  956. temp = gettemp(url,headers)
  957. print('返回状态:'+str(temp['status']))
  958. while 1<2: #如果状态不是0 就一直访问
  959. if(temp['status'] !=0):
  960. time.sleep(5)
  961. temp = gettemp(url, headers)
  962. print('返回状态:'+str(temp['status']))
  963. elif(temp['status'] == 0):
  964. break
  965. print(type(temp['results']))
  966. if(temp['results'] == None ):
  967. lat = 0
  968. lng = 0
  969. elif(temp['results'] != None):
  970. try:
  971. lat = temp['results'][0]['location']['lat']
  972. lng = temp['results'][0]['location']['lng']
  973. except:
  974. return 0,0
  975. return lat,lng
  976. def mainjw():
  977. fh = open("data/经纬度.txt", "a", encoding='utf-8',buffering=1)
  978. file = open('data/房价数据/part-00001','r',encoding='utf-8')
  979. a=1
  980. for line in file:
  981. if(a<=3000):
  982. splits = line.split(",")
  983. address1 = splits[0]
  984. splits3 = str(splits[2]).split("]",1)
  985. address2 = splits3[1]
  986. address = address1 + address2
  987. lat,lng = getlatlng(address)
  988. time.sleep(1)
  989. content = line.strip()+','+str(lat).strip()+','+str(lng).strip()+'\n'
  990. print(content)
  991. fh.write(content)
  992. a += 1
  993. if(a>3000):
  994. break
  995. if __name__ == '__main__':
  996. # lat,lng = getlatlng("广州中山大道190号")
  997. # print("北纬:"+str(lat)+'\n'+"东经"+str(lng))
  998. mainjw()
  999. # ak = getak()
  1000. # address = '广州山前大道'
  1001. # url = "http://api.map.baidu.com/place/v2/search?ak=%s&output=json&query=%s&page_size=10&page_num=0&scope=1&region=全国&mcode=F5:3E:p06:3E:FC:E8:ED:19:60:2E:99:63:D8:78:85:2E:EB:12:9D:BE;com.mikyou.maptest" %(ak,address)
  1002. # response = requests.get(url)
  1003. # print(response.status_code)
  1004. # print(response.text)
  1005. # print(time.time())