From b8ffc2e24055ff31ac6f5d60436c14c60430e658 Mon Sep 17 00:00:00 2001 From: Salman Kabir Date: Sun, 7 Jan 2024 02:25:21 +0600 Subject: [PATCH] Changed reviews count data format --- google_maps_data.csv | 26 -------------------------- google_maps_data.xlsx | Bin 6947 -> 0 bytes main.py | 2 +- 3 files changed, 1 insertion(+), 27 deletions(-) delete mode 100644 google_maps_data.csv delete mode 100644 google_maps_data.xlsx diff --git a/google_maps_data.csv b/google_maps_data.csv deleted file mode 100644 index bad00c0..0000000 --- a/google_maps_data.csv +++ /dev/null @@ -1,26 +0,0 @@ -name,address,website,phone_number,reviews_count,reviews_average,latitude,longitude -Restaurant Y Panaderia Latina,"3221 W Davis St, Dallas, TX 75211, États-Unis",latinarestaurante.com,+1 214-337-4470,356,4.0,32.7498452,-97.1703813 -Sabor Latino,"5431 E Grand Ave, Dallas, TX 75223, États-Unis",saborlatinodallas.com,+1 817-243-5500,174,4.3,32.7498452,-97.1703813 -Miriam Cocina Latina,"2015 Woodall Rodgers Fwy, Dallas, TX 75201, États-Unis",miriamcocina.com,+1 214-855-5275,910,4.6,32.7498452,-97.1703813 -Zaguan Latin Café & Bakery,"Zaguan Latin Cafe & Bakery, 2604 Oak Lawn Ave, Dallas, TX 75219, États-Unis",zaguan.com,+1 214-219-8393,1,4.1,32.7498452,-97.1703813 -Gloria's Latin Cuisine,"3715 Greenville Ave, Dallas, TX 75206, États-Unis",gloriascuisine.com,+1 214-874-0088,1,4.5,32.7498452,-97.1703813 -Gloria's Latin Cuisine,"600 N Bishop Ave, Dallas, TX 75208, États-Unis",gloriascuisine.com,+1 214-948-3672,2,4.4,32.7498452,-97.1703813 -Tienda & Restaurant Latina,"4950 W Illinois Ave #115, Dallas, TX 75211, États-Unis",latinarestaurante.com,+1 214-330-0011,272,3.8,32.7498452,-97.1703813 -Wild Salsa,"1800 Main St, Dallas, TX 75201, États-Unis",wildsalsarestaurant.com,+1 214-741-9453,1,4.4,32.7498452,-97.1703813 -Restaurant Latino,"14500 S Josey Ln #101, Dallas, TX 75234, États-Unis",,+1 972-620-4954,172,3.8,32.9443412,-97.1783298 -Cafe Salsera,"2610 Elm St, Dallas, TX 75226, États-Unis",cafesalsera.com,+1 469-518-1500,682,4.0,32.9443412,-97.1783298 -El Bolero Cocina Mexicana,"1201 Oak Lawn Ave #160, Dallas, TX 75207, États-Unis",elboleromexican.com,+1 214-741-1986,1,4.1,32.9443412,-97.1783298 -Salsa Limón,"411 N Akard St, Dallas, TX 75201, États-Unis",salsalimon.com,+1 972-803-4388,1,4.5,32.9443412,-97.1783298 -Havana Cafe-Mojito Bar,"1152 N Buckner Blvd #126, Dallas, TX 75218, États-Unis",,+1 214-660-9611,1,4.4,32.8342759,-96.9905284 -Cafe Madrid,"4501 Travis St, Dallas, TX 75205, États-Unis",cafemadrid-dallas.com,+1 214-528-1731,927,4.4,32.8342759,-96.9905284 -Gloria's Latin Cuisine,"3223 Lemmon Ave, Dallas, TX 75204, États-Unis",gloriascuisine.com,+1 214-303-1166,1,4.4,32.8342759,-96.9905284 -Gloria's Latin Cuisine,"4140 Lemmon Ave, Dallas, TX 75219, États-Unis",gloriascuisine.com,+1 214-521-7576,849,4.4,32.8342759,-96.9905284 -Las Palmas Restaurant,"3957 Belt Line Rd, Addison, TX 75001, États-Unis",laspalmasrestaurante.com,+1 469-665-8958,1,4.1,32.9539978,-97.1360389 -Beto & Son,"3011 Gulden Ln #108, Dallas, TX 75212, États-Unis",betoandsondallas.com,+1 469-249-8590,3,4.3,32.9539978,-97.1360389 -Ocho Latin Cuisine Events,"369 Jefferson Blvd, Dallas, TX 75208, États-Unis",ochooc.com,,134,4.1,32.7433967,-97.1164245 -Meso Maya Comida y Copas,"1611 McKinney Ave, Dallas, TX 75202, États-Unis",mesomaya.com,+1 214-484-6555,4,4.5,32.7433967,-97.1164245 -Campuzano Mexican Food,"2618 Oak Lawn Ave, Dallas, TX 75219, États-Unis",campuzanomexicanfood.com,+1 214-526-0100,2,4.4,32.7433967,-97.1164245 -La Duni Latin Cafe,"2612 Irving Blvd, Dallas, TX 75207, États-Unis",ladunihub.com,+1 214-520-7300,859,4.3,32.7433967,-97.1164245 -Mi Sazon Mexican Restaurant,"3505 S Polk St, Dallas, TX 75224, États-Unis",misazonrestaurant.com,+1 214-375-3333,745,4.1,32.7433967,-97.1164245 -Si Tapas,"2207 Allen St, Dallas, TX 75204, États-Unis",sitapasdallas.com,+1 214-720-0324,980,4.3,32.7433967,-97.1164245 -Te Deseo,"2700 Olive St, Dallas, TX 75201, États-Unis",tedeseo.com,+1 214-646-1314,1,3.9,32.7433967,-97.1164245 diff --git a/google_maps_data.xlsx b/google_maps_data.xlsx deleted file mode 100644 index dedd7f14736098533110421570940c22b8f73591..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6947 zcmZ`;1yEeuvK>4@f(#M{cN^R_$iF^~D~R1~j2b^-9c^6H3#7EVW5RCp@Bn-^}}{>xc#s4Dl2=Co=Czel`m1 z5Vv!0GVE1;4oS;$Nws39zfQG2j|o|9Cu_35F+%E0yhT#^FMn0Q-8#olelo!W0NDTO zuZg{r*`E%NCrm2!vZ03=AZ@P+*wP`YrlQR%kyEh0>|>T|XD+xY>?>Pco=vF+2BK`d zzDu3VrTHv?N`fO&ip3t^@6FjfVV=L0K@w2_7`hEt+ICX7u5ZB{W&q{x0aW)eT}8|I zJCVYQK2Rb7>%!6EhZijJfsCkoA9y{x2Pfyo*$UwVU3M8HG&H+lT4GV!m%hyLrY=`nxPDEMx#6iw*z) zKCuI}VRf-Evo-ts$^Iulhq@5wB|co=iZ9|KL z8e5Ewu(bB13$<85zfso`(97pD48-YO35e?HSH*Aw}UgM3bN1GMG0ky^sc;FtX&r zWeeKaI)(Bzjm|_l5F>7=w&nC>|FY>U5_{QDXgOv2^>V2uzN8}ht@7-Z&-y{8MHXr_ zM0wWQeRVb_VxW2oiqUbZ9M)SCF;F?>a$reI_fTV9w1;mYF12;wiG$a;EjmjM&~|WJ z7@I*z(Py}IO#*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EJ35l?a{n*;wmMymzply5+DdNq#s$dUEcnaO^#<&cU4N_Ldxtx2%?-AD(Yny z>33qk8(&4G*Y%=dXW5zG54)&I5j@*PlQYMt>+{di*!AhdUE30dTUN%Tj4{F5j{)vq zhLs_GaM%!UZSI6jkCH%cr=;)3Q=j)w5j} z2((A#X!S+yo{W(RiMV=cKYHiFGLh!2q7rP4ftg_0=3TS}bNeSpdv4pXV zUG$>UY z3$lbBC0txrExq|3KJuMlvbF2&mP?v4$l-xt3OyE0Jl$%WqY5bnWgLW&j42MfJkI%YpvpA0g!lwmJBK$4eLL}_%T+HlT4Aeaw z%$)W9jH2p9#V1)C>uGgn5E>S+c3ugQA)1~8oQX21@-fj|cV?MWX-O^*2QNgi3cA)l znUh+z7K>fCn|<*$iA2>K7hVHJ$(V!^TGK$mFMFTSL@C#p2*J7<-40Ue20|<7y^;>* zIUAhp%b|N7M2aVh>0QP;LeV{AR&s=e+;TXJ{oMy-N&A14wKz{1np3i9t3*}?zq=uE z*!L0?m6MXFkB`tVHc8&C78TI#@?6>+A(U7KAqkXy*-8PKz?at}keeS&yRa+L=CFO3 zZ2NZK{T_8_L=hF6zaG(VFq>+4Rl}4@#v1 z+G~K|H_^l?cF$4goBH+zC6M2bsPAv|{hpYFgU3bq{|6dRG4t2Q|B2uKJ>GbZem-9K z8w&vV!`1yK`d`C_=kVwH`#D^D6icPy+AYp8u;RJ_kR~@_)d2_u@=wtV@IS}}aDD&) diff --git a/main.py b/main.py index 10e3510..04baba4 100644 --- a/main.py +++ b/main.py @@ -162,7 +162,7 @@ def main(): .replace(",", ".") .strip() ) - business.reviews_count = int( + business.reviews_count = ( listing.locator(reviews_span_xpath).all()[0] .get_attribute("aria-label") .split()[2]