<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Humeyraboluk on Medium]]></title>
        <description><![CDATA[Stories by Humeyraboluk on Medium]]></description>
        <link>https://medium.com/@humeyraboluk?source=rss-f14923177640------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*uJ3_a2ZR2kCE55OjtFT0lw@2x.jpeg</url>
            <title>Stories by Humeyraboluk on Medium</title>
            <link>https://medium.com/@humeyraboluk?source=rss-f14923177640------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 22:45:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@humeyraboluk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Süreç Dokümanını Kimse Okumuyorsa Sorun Süreçte Değil, Dokümanda]]></title>
            <link>https://medium.com/@humeyraboluk/s%C3%BCre%C3%A7-dok%C3%BCman%C4%B1n%C4%B1-kimse-okumuyorsa-sorun-s%C3%BCre%C3%A7te-de%C4%9Fil-dok%C3%BCmanda-a96d48c1be52?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/a96d48c1be52</guid>
            <category><![CDATA[requirements-engineering]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[system-analysis]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Fri, 07 Aug 2026 12:26:01 GMT</pubDate>
            <atom:updated>2026-08-07T12:26:01.421Z</atom:updated>
            <content:encoded><![CDATA[<h3>Tanıdık sahne</h3><p>Bir süreci haftalar boyunca çıkardınız. Aktörleri, istisnaları, sorumluları tek tek oturttunuz. Doküman paylaşıldı, birkaç “teşekkürler” geldi.</p><p>Üç gün sonra ekipten biri mesaj atıyor: <em>“Şu durumda ne yapıyoruz?”</em></p><p>Cevap dokümanın on ikinci sayfasında. Hem de kalın puntoyla.</p><p>İlk refleks hazır: <strong>“Kimse okumuyor.”</strong></p><p>Bu teşhis rahatlatıcıdır, çünkü sorunu okurun disiplinine havale eder. Ama yanlıştır. Okunmayan doküman, kötü tasarlanmış bir arayüzdür. Kullanıcının bulamadığı bir butonu kullanıcının dikkatsizliğine yazmıyorsak, bulunamayan cevabı da okurun tembelliğine yazmamalıyız.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G-BZVzlhEDJq-DG8Mfd17Q.png" /></figure><h3>Yazma anı ile okuma anı birbirine benzemez</h3><p>Doküman sakin bir anda yazılır: bütünsel düşünerek, baştan sona, kahve elde.</p><p>Okunma anı ise şudur: hattın diğer ucunda müşteri bekliyor, ticket açık, sürüm bir saat sonra canlıya çıkacak. Okur dokümanı <em>okumaz</em> — <strong>sorgular</strong>. Ctrl+F yapar, tek bir cevap arar, bulamazsa yarım dakika içinde vazgeçer ve birine sorar.</p><p>Çünkü sormak daha ucuzdur. Doküman, “sormak”tan daha hızlı cevap vermediği sürece bu rekabeti kaybeder.</p><p>Bu yüzden hedef metrik <em>okunabilirlik</em> değil: <strong>bulunabilirlik ve cevaplanabilirlik</strong>.</p><h3>Bir de soramayan okur var</h3><p>Süreç dokümanlarımın en acımasız okuru bir insan değildi. Bir RPA botuydu.</p><p>İnsan okur, doküman yetersiz kaldığında sessizce telafi eder: yanındakine sorar, geçen seferki gibi yapar, “herhalde şöyledir” der. Bu telafi mekanizması dokümanın eksiklerini görünmez kılar. Yıllarca “iyi” sanılan dokümanlar, aslında iyi çalışan bir kulaktan dolma ağının üzerinde durur.</p><p>Bot bunu yapamaz. Bir koşul tanımsızsa duraksamaz, tahmin etmez, kimseye danışmaz — ya yanlış dalı seçer ya da düşer. Süreci otomasyona verdiğiniz an, dokümandaki her belirsizlik bir istisna olarak geri gelir.</p><p>Bunu ilk kez fark ettiğimde şunu anladım: <strong>bir otomasyon projesinin ilk gerçek çıktısı bot değildir, süreç dokümanınızın hata listesidir.</strong></p><p>Ve bu liste, süreci bilenlerin yıllardır “aslında orası biraz muğlak” diye geçiştirdiği yerlerin tam listesidir.</p><h3>Aynı doküman, altı farklı okur</h3><p>Bir süreç dokümanı, birbirinden tamamen farklı sorular soran okurlar tarafından açılır. Tek bir anlatı bunların hiçbirine tam hizmet etmez:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*csso0lKCL6WlALpqd6vpRg.png" /></figure><p>Çözüm dokümanı altıya kopyalamak değil — bu bakım kâbusudur. Çözüm <strong>tek bir doğruluk kaynağı, üzerine role göre kesitler</strong>: aynı süreç tanımından çağrı merkezi için karar tablosu, geliştirici için alan sözleşmesi, raporlama için metrik sözlüğü türetmek. Kaynak değişince kesitler de değişir.</p><p>Listenin sonundaki okuru ise atlamayın: karar tablosunu bot için yazarsanız, diğer beşine zaten yazmış olursunuz.</p><h3>Paragraf gizler, tablo açığa çıkarır</h3><p>Tedarikçi faturalarının sisteme işlenmesini otomatikleştirdiğimiz bir çalışmada, elimizdeki süreç dokümanında şu paragraf vardı:</p><blockquote><em>“Gelen tedarikçi faturası ilgili satın alma siparişiyle karşılaştırılır. Tutar farkı belirlenen tolerans içindeyse fatura otomatik olarak kaydedilir. Tolerans aşımı durumunda ilgili satın alma sorumlusuna yönlendirilir. İrsaliye eşleşmesi sağlanamayan faturalarda süreç bekletilir ve gerekli görülmesi halinde manuel değerlendirme yapılır.”</em></blockquote><p>Bu paragraf yıllardır oradaydı. Hiç kimse itiraz etmemişti. Okuyunca da mantıklı geliyor.</p><p>Şimdi aynı bilgiyi bir karar tablosuna dökelim — botun ihtiyacı olan biçime:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*evWGe4UlkCGqi2RE_su0Mg.png" /></figure><p>Tablonun asıl değeri doldurduğunuz hücreler değil — <strong>boş kalan hücreler</strong>.</p><p>Altı satırın dördü soru işareti. Üstelik doldurabildiğimiz hücreler bile yeni sorular doğurdu: “tolerans” yüzde miydi, tutar mıydı, ikisi birden mi? Küçük tutarlı bir faturada %5 fark tolerans içinde sayılır mı? “Bekletilir” ne kadar bekler — ve bekleyen fatura kimin ekranında görünür?</p><p>Paragraf bunların hepsini “gerekli görülmesi halinde manuel değerlendirme yapılır” cümlesinin altına süpürmüştü. İnsan okur bu cümleyi gözü takılmadan geçer. Bot geçemez, çünkü bir else dalı olmak zorundadır.</p><p>İş analistinin işi tam burada başlıyor: tablo, dokümanı bir kayıt aracından bir <strong>analiz aracına</strong> çevirir. Yazarken süreci test etmiş olursunuz — ve süreçteki kararsızlığı, o karar ilk kez pahalıya patlamadan önce bulursunuz.</p><h3>“Aktif müşteri” kimdir?</h3><p>Aynı boşluk raporlamada başka bir kılıkta karşınıza çıkar: <strong>tanımsız metrik.</strong></p><p>Bir toplantıda üç kişi “aktif müşteri sayısı”nı söyler ve üç farklı rakam çıkar. Kimse hata yapmamıştır. Satış son 30 günde sipariş verenleri saymıştır, finans sözleşmesi yürürlükte olanları, operasyon ise en az bir açık kaydı bulunanları.</p><p>Rapor doğru hesaplıyordur. Sorgu doğrudur. Eksik olan, o metriğin ne olduğuna dair yazılı bir karardır — yani dokümandaki bir boş hücre.</p><p>Bunun çözümü daha çok rapor üretmek değil, raporun yanına <strong>metrik sözlüğü</strong> koymaktır: metriğin adı, sözel tanımı, hesaplama kuralı, hangi tarih alanına göre, hangi kayıtlar hariç, sahibi kim.</p><p>Bir metriğin tanımı yazılı değilse o metrik yoktur; sadece o an ekranda duran bir sayı vardır.</p><h3>Diyagram süsleme değildir</h3><p>Bir diyagram, metnin söylediğini tekrar ediyorsa gereksizdir. Diyagram yalnızca iki şeyi metinden iyi anlatır: <strong>dallanma</strong> ve <strong>eller arası devir</strong>.</p><p>Üç pratik kural:</p><ol><li><strong>Bir diyagram, bir soru.</strong> “Tüm süreç” diyagramı kimsenin sorusuna cevap vermez. “Fatura eşleşmezse akış nereye gider?” diyagramı verir.</li><li><strong>Tek ekran kuralı.</strong> Kaydırmak gereken diyagram okunmaz, yalnızca “kapsamlı” görünür.</li><li><strong>Diyagramı kod gibi versiyonlayın.</strong> Word dosyasına gömülü bir PNG ilk değişiklikte ölür — kaynağı kimsede yoktur. Metin tabanlı diyagram (Mermaid gibi) depoda durur, satır satır kıyaslanır, kod gibi gözden geçirilir.</li></ol><h3>Doküman güveni yalnızca bir kez kaybeder</h3><p>Dokümantasyonun gerçek katili okunmamak değil, <strong>güvenilmemek</strong>.</p><p>Bir okur dokümandaki bilgiye bir kez güvenip yanlış aksiyon aldıysa, o dokümana bir daha dönmez. Sizinkinden emin olmayı sizden emin olmaya tercih eder ve doğrudan insana sorar. Bu noktadan sonra doküman ne kadar iyileşse fark etmez; okur alışkanlığını değiştirmiştir.</p><p>Bu yüzden en tepede, göz seviyesinde şunlar bulunmalı:</p><ul><li><strong>Sürüm ve tarih</strong> — dosya adında değil, içerikte</li><li><strong>Sahip</strong> — kime sorulacak, kim güncelliyor</li><li><strong>Ne değişti</strong> — kısa bir değişiklik notu</li><li><strong>Geçerlilik uyarısı</strong> — hangi tarihten sonra teyit gerekir</li></ul><p>Ve en önemlisi: <strong>tek konum</strong>. Aynı dokümanın e-posta ekindeki, masaüstündeki ve portaldaki üç kopyası varsa, hangisinin doğru olduğunu kimse bilmiyor demektir. Kopya paylaşmayı bırakıp link paylaşmaya geçmek, tek satırlık bir alışkanlık değişikliğiyle güven probleminin yarısını çözer.</p><h3>Dokümanı test edin — yazılım gibi</h3><p>Doküman yayına alınan bir üründür; test edilmeden çıkmamalı. Üç test, otuz dakika:</p><p><strong>1. Görev testi.</strong> Süreci bilmeyen birine üç gerçek soru verin ve yalnızca dokümanla cevaplamasını isteyin. Ölçün: kaç saniyede buldu, kaç kez yanlış bölüme gitti, kaç kez size sormaya kalktı. Sormaya kalktığı an test başarısızdır — ve nerede başarısız olduğunu tam olarak biliyorsunuzdur.</p><p><strong>2. Arama testi.</strong> Okurun aradığı kelime, sizin yazdığınız kelime mi? Siz “mutabakatsızlık” yazdınız, o “tutmuyor” arıyor. Siz “istisna kuyruğu” yazdınız, o “bot düştü” arıyor. Siz “veri kalitesi” yazdınız, o “rapor yanlış” arıyor. Jargonu silmek zorunda değilsiniz; okurun kelimesini de metne koymanız yeterli.</p><p><strong>3. Kırılma testi.</strong> Doküman yalnızca mutlu yolu mu anlatıyor? Kaynak sistem yanıt vermezse, aynı kayıt iki kez gelirse, tedarikçi adı farklı yazılmışsa, dosya taranmış görüntüyse, işlem yarıda kalırsa ne olacak? Süreç dokümanının değeri istisnalarda ortaya çıkar; mutlu yolu insanlar zaten kendiliğinden bulur.</p><p>Bu üçünü yapmak için RPA projesi beklemenize gerek yok. Zaten testin özeti şu: <strong>dokümanı, soramayan bir okur gibi okuyun.</strong></p><h3>Tekrar sorular sizin hata kaydınızdır</h3><p>“Doküman işe yarıyor mu?” sorusunun ölçülebilir cevapları var:</p><ul><li>Aynı sorunun tekrar gelme sıklığı</li><li>Aynı soruyu <strong>kaç farklı kişinin</strong> sorduğu — bir kişi sorarsa kişisel, üç kişi sorarsa dokümanın açığı</li><li>Yeni başlayanın ilk bağımsız işlemi yapma süresi</li><li>Cevap olarak insan cümlesi mi, link mi paylaşılıyor</li><li>Otomasyon varsa: istisna kuyruğuna düşen işlemlerin oranı ve düşme nedenlerinin dağılımı</li></ul><p>Bunların hiçbirini takip edemiyorsanız en azından şunu yapın: gelen tekrar soruları bir listeye yazın. O liste sizin dokümantasyon backlog’unuzdur. Her tekrar soru bir hata kaydıdır — süreçte değil, dokümanda açılmış bir hata.</p><h3>Yayına almadan önce 10 soru</h3><ol><li>Bu dokümanı kim, hangi baskı altında açacak?</li><li>En sık sorulan soru ilk ekranda cevaplanıyor mu?</li><li>Kapsam ve tanımlar bölümü, cevabı kaç ekran aşağıya itti?</li><li>Koşul içeren her paragraf tabloya çevrilebilir mi?</li><li>Tabloda boş hücre var mı — yani karar verilmemiş nokta var mı?</li><li>Geçen her metriğin yazılı bir hesaplama tanımı var mı?</li><li>Her diyagram tek bir soruya mı cevap veriyor?</li><li>Sürüm, tarih ve sahip en tepede mi?</li><li>İstisna senaryoları mutlu yol kadar ayrıntılı mı?</li><li>Bu dokümanı okuyup tek başına doğru dalı seçebilecek bir makine yazılabilir mi?</li></ol><p>Son soru gereksiz iddialı görünebilir; ama cevabı “hayır” ise, insanların da o dalı doğru seçtiğinden emin olamazsınız. Sadece sorabildikleri için sorunu göremiyorsunuzdur.</p><h3>Doküman bir çıktı değil, bir arayüzdür</h3><p>Süreç, dokümanın arkasındaki sistemdir. Doküman ise o sisteme açılan arayüz.</p><p>Kötü bir arayüzde kullanıcıyı suçlamıyorsak, okunmayan dokümanda okuru da suçlamamalıyız. “Kimse okumuyor” cümlesi bir tespit değil, ertelenmiş bir tasarım kararıdır.</p><p>İyi haber: dokümanı düzeltmek süreci düzeltmekten çok daha hızlıdır. Ve çoğu zaman dokümanı düzeltirken süreçteki asıl boşluğu da bulursunuz.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a96d48c1be52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Makes a Software Requirements Document Actually Useful?]]></title>
            <link>https://medium.com/@humeyraboluk/what-makes-a-software-requirements-document-actually-useful-3dab207d5355?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/3dab207d5355</guid>
            <category><![CDATA[system-analysis]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[software-documentation]]></category>
            <category><![CDATA[requirements-engineering]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 06:36:49 GMT</pubDate>
            <atom:updated>2026-08-03T06:36:49.375Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mGgyZDUPcF1HQdRQ8QLcaQ.png" /></figure><p>The most useful requirements document I’ve ever worked from was eleven pages long.</p><h3>The worst one was seventy-four.</h3><p>The seventy-four-page document had everything you’d expect it to have. Table of contents. Glossary. Version history. A screenshot of every screen in the system, cropped and captioned. I read it twice and still had to open a chat window to ask where the invoice address was supposed to come from.</p><p>The eleven-page one answered that in a table on page four.</p><p>Length isn’t the variable. I used to think it was. I assumed that if I documented <em>more</em>, questions would stop arriving, so I wrote longer and longer documents. The questions didn’t stop. They just arrived later, usually during acceptance testing, usually from someone whose sprint I was about to wreck.</p><p>What separates those two documents is how much ambiguity each one removes, and that’s measurable in a fairly brutal way: hand the document to a developer, a tester, and a business owner. Ask each of them what the system does. If you get three different systems back, the page count is irrelevant.</p><p>Six questions decide whether a document is doing its job:</p><ul><li>Why does this need to change?</li><li>Who touches it, and what is each of them allowed to do?</li><li>What should the system do?</li><li>Which rules govern that behaviour?</li><li>What happens when something breaks?</li><li>How will we know it was built correctly?</li></ul><p>A document that can’t answer these contains information. It isn’t a specification yet.</p><h3>What the document is actually for</h3><p>Requirements writing gets treated as paperwork. Someone asks for a feature, an analyst writes it up, the document gets approved, filed, and quietly abandoned while the real decisions keep happening in meetings, screenshots, and hallway conversations.</p><p>By the end of that project you have five different systems:</p><p>the one in the document, the one the business team pictured, the one the developer understood, the one QA tested, and the one the customer actually gets.</p><p>The document’s job is to pull those five closer together. It isn’t there to prevent every future question — that’s impossible and chasing it is how you end up at seventy-four pages. It’s there to make the important decisions visible, testable, and traceable back to a reason.</p><p>It’s a decision record. Not a description.</p><h3>How you know yours isn’t working</h3><p>You rarely find out from the document itself. You find out from the noise around it:</p><ul><li>Developers keep asking where a field’s data comes from.</li><li>Testers can’t build cases without a follow-up meeting.</li><li>Business rules live inside screenshots.</li><li>Two teams use the same status word and mean different events.</li><li>Error handling shows up for the first time in UAT.</li><li>Open questions are written in the same font, in the same tone, as approved decisions.</li></ul><p>When this happens, people usually call it a communication problem. Sometimes it is. More often the document described what the interface looks like and never described how the system behaves — and those are not the same document.</p><h3>Start with the problem, not the request</h3><p>Here’s a request I’ve received in roughly this form more than once:</p><blockquote><em>Add a new address field to the checkout page.</em></blockquote><p>Sounds like a two-day job. But it doesn’t say why, and the why changes the build completely. It could be that the invoice address has to come from the official verification service. It could be that customers need a delivery address separate from the invoice one. It could be that the ERP address field is shorter than what the web form accepts, and orders are arriving with truncated addresses that couriers can’t find.</p><p>That last one, by the way, is not hypothetical. A web form that accepts 250 characters feeding an ERP field that accepts 100 will pass every test you write against the web form. You find out from operations, later, and never at a convenient hour.</p><p>So write the problem down first:</p><blockquote><em>Checkout currently uses one address for both invoicing and delivery. The official invoice address may differ from where the customer wants the goods, so the system must store and transfer the two purposes separately.</em></blockquote><p>Now the feature has a reason attached to it. Without that, a team can implement the requested field perfectly and still solve nothing.</p><h3>Write down what you’re not doing</h3><p>A requirement is dangerous when its edges are invisible. Take this one:</p><blockquote><em>Customers should be able to update their delivery address.</em></blockquote><p>Before payment? After payment? After the order has gone to ERP? After the warehouse has started picking it? Does changing the address recalculate shipping? Does it touch the invoice address? Does operations get told? Does anything get logged?</p><p>Every one of those is a product decision. If the document doesn’t make them, a developer will — at 4pm, alone, based on what seems reasonable. That’s not the developer’s fault. It’s a gap in the document.</p><p><strong>In scope:</strong> customers can edit the delivery address before payment; shipping is recalculated after the change; the final address is stored on the order.</p><p><strong>Out of scope:</strong> the verified invoice address can’t be edited; the delivery address can’t change once the order enters shipment preparation; changes after dispatch go through customer support.</p><p>The out-of-scope list is the half people skip, and it’s the half that prevents silent product decisions.</p><h3>“User” is not an actor</h3><p>The word <em>user</em> is almost always too broad. In a payment flow you might be dealing with anonymous visitors, registered customers, corporate customers, support staff, the operations team, finance, administrators, an external service account, and a scheduled job that nobody remembers configuring.</p><p>They don’t have the same permissions, so this requirement is incomplete:</p><blockquote><em>The order status can be changed.</em></blockquote><p>Changed by whom? Which transitions are allowed — can something go backwards? Does it need confirmation? Is the previous status kept? Does it fire a notification? Does it hit the audit log?</p><p>Permissions are system behaviour. Write them as behaviour. Hiding a button is not authorization, and every analyst learns that the first time someone finds the endpoint.</p><h3>The flow, not the screen — and the rules underneath it</h3><p>Screenshots support a requirement. They can’t replace the process behind it. A screenshot shows me where the payment button sits. It doesn’t tell me which validations run first, what gets sent to the provider, when inventory is reserved, what happens on a successful callback, what happens on a timeout, or when the ERP transfer starts.</p><p>So draw the whole path across systems:</p><pre>Customer submits checkout<br>  → server validates customer and cart<br>  → payment attempt created<br>  → inventory reserved<br>  → redirect to 3D Secure<br>  → payment result verified<br>  → order finalised<br>  → ERP transfer queued<br>  → confirmation notification queued</pre><p>The diagram shows the journey. The business rules explain how each step behaves. You need both — a diagram with no rules attached is a map with the roads left out.</p><p>And the rules are the real content of the document. Things like: the order total is calculated server-side. The payment result is verified before the order is confirmed. An order is never transferred to ERP twice. A product without a valid ERP code blocks the transfer. An expired inventory reservation is never assigned to an order. A failed confirmation email never cancels a paid order.</p><p>Each of those is specific, testable, and tied to an outcome someone in the business cares about. Compare that with <em>properly</em>, <em>quickly</em>, <em>securely</em>, <em>user-friendly</em>. Those aren’t rules. They’re adjectives waiting to be translated, and if you don’t translate them, someone else will interpret them for you.</p><h3>Every field has an owner</h3><p>A surprising number of “technical” problems turn out to be ownership problems wearing a technical costume.</p><p>customerAddress exists in three systems. In one it&#39;s the customer&#39;s current delivery address. In another it&#39;s the legally registered invoice address. In the third it&#39;s a snapshot of whatever was valid the day the order was created. All three are correct. All three are different. Nobody wrote down which one wins.</p><p>For every meaningful field, define the business meaning, the type, whether it’s required, the validation, the source system, the destination, who’s allowed to edit it, the maximum length, an example value, and what the system does when it’s empty. That’s tedious to write and it saves entire weeks.</p><p>Business fieldSourceDestinationRuleInvoice addressAddress verification serviceOrder + ERPCannot be edited manually during checkoutDelivery addressCustomer inputOrder + ERPRequired unless the product is digitalProduct codeProduct catalogueERP order lineTransfer stops when no mapping existsPayment transaction IDPayment providerPayment recordMust be uniqueOrder totalServer-side calculationPayment provider + orderClient-supplied value is never trusted</p><p>That table isn’t technical documentation. It’s a statement of who owns what.</p><h3>States, and what moves between them</h3><p>Requirements describe actions and forget statuses. Here’s one I’ve written myself, and regretted:</p><blockquote><em>After payment, the order is approved.</em></blockquote><p>Approved. Meaning payment was initiated? Authorized? Captured? The order record was created? Stock was assigned? ERP accepted it?</p><p>I sat in a meeting once where four people used that word and meant four different events, and none of them were wrong. We just didn’t have a shared vocabulary, and the document hadn’t given us one.</p><p>So give the states names and define what moves between them.</p><p>FromTriggerToPayment PendingVerified successful paymentPayment ConfirmedPayment PendingProvider rejectionPayment FailedPayment PendingTimeout, no final resultPayment Result UnknownPayment ConfirmedOrder finalisedOrder ConfirmedOrder ConfirmedERP accepts the orderTransferred to ERPOrder ConfirmedERP rejects the orderERP Transfer Failed</p><p>Note that “Payment Result Unknown” is a real state, not a rounding error. Treating a timeout as a rejection is one of the more expensive shortcuts available in this domain.</p><h3>The unhappy path is a requirement, not an edge case</h3><p>A document that only describes the successful flow is half a document.</p><blockquote><em>After successful payment, the order must be transferred to ERP.</em></blockquote><p>Fine. Now: what if ERP is down? Is the order still confirmed — yes, obviously, the customer’s money is gone. How many retries? What stops a duplicate transfer? Which error details get stored? Can an authorized employee retry it by hand? Does the customer hear anything? When does operations get paged? And the nasty one — what happens when ERP actually accepted the order but the response never came back?</p><p>Somebody is going to decide all of this. The only question is whether it’s decided in the document, with the business in the room, or at implementation time by whoever hit the error first.</p><p>Failure behaviour is a business process. Design it like one.</p><h3>If you can’t write the test, you don’t have a requirement</h3><p>This is the check I trust most. Take the requirement and try to write acceptance criteria for it in Given/When/Then form. If you can’t, the requirement isn’t finished — you’ve found a missing decision, not a writing problem.</p><blockquote><strong><em>Given</em></strong><em> a payment transaction has already been processed successfully, </em><strong><em>when</em></strong><em> the same callback arrives again, </em><strong><em>then</em></strong><em> the system must not create a second order, must not decrement inventory again, and must not queue a second ERP transfer.</em></blockquote><blockquote><strong><em>Given</em></strong><em> an order has been paid successfully, </em><strong><em>when</em></strong><em> the ERP service is unavailable, </em><strong><em>then</em></strong><em> the order stays confirmed, the transfer status is recorded as pending or failed, and the transfer remains available for automatic or authorized manual retry.</em></blockquote><p>This is also how you dismantle vague requirements. “The system should securely process the payment” is unbuildable and untestable. Broken into observable behaviour it becomes: the amount is calculated server-side; the amount returned by the provider must match the expected amount; the provider’s transaction ID is stored; that ID can never produce two orders; raw card data never reaches application logs; a timeout produces an unknown status, not an automatic rejection; nothing goes to ERP before the payment result is verified.</p><p>Same word. Seven testable rules. Apply the same treatment to <em>fast</em>, <em>simple</em>, <em>flexible</em>, <em>dynamic</em>, <em>reliable</em>, <em>accessible</em>. Every one of them has to end up as a rule, a number, a constraint, or a test.</p><p>The same goes for non-functional requirements generally. “The page should load quickly” is a wish. “Under normal load, the checkout summary loads within two seconds for at least 95% of requests” is a requirement. “Changes must be logged” is a wish. “Every manual order status change records the previous status, the new status, timestamp, user ID, and reason” is a requirement.</p><h3>Keep decided things separate from guessed things</h3><p>Documents hide uncertainty, usually by accident. Consider:</p><blockquote><em>The system will probably retry the ERP transfer three times.</em></blockquote><p>Is three approved? Is it a suggestion from a developer? Is it an open question wearing a confident sentence? You can’t tell, and six months later nobody remembers.</p><p>Split them explicitly, in three labelled blocks:</p><p><strong>Decided.</strong> ERP transfers run asynchronously. Failed transfers can be retried manually by authorized users.</p><p><strong>Open.</strong> What’s the automatic retry interval? How many attempts before manual review? Who gets the final failure alert?</p><p><strong>Assumed.</strong> The ERP API detects duplicates via the external order number. Product mappings will be complete before go-live.</p><p>That third block is the one that bites. An unlabelled assumption becomes permanent system behaviour without anyone approving it.</p><h3>The skeleton I actually use</h3><p>Not every change needs all of this. A copy change on a confirmation page needs sections 1, 2, and 12, and anyone who makes you write the other eleven is not helping. But for anything touching money, stock, or an external system, this is the full frame:</p><ol><li><strong>Purpose and business context</strong> — the problem, why it matters, the expected outcome</li><li><strong>Scope</strong> — in and out</li><li><strong>Actors and permissions</strong> — who does what</li><li><strong>Current process</strong> — how it works today, and where it hurts</li><li><strong>Target process</strong> — how it should work, and which systems are involved</li><li><strong>Business rules</strong> — conditions, calculations, validations</li><li><strong>Data definitions and mapping</strong> — source, destination, ownership</li><li><strong>States and transitions</strong></li><li><strong>Failure and exception scenarios</strong></li><li><strong>Integration requirements</strong> — timeout, rejection, duplicate response</li><li><strong>Non-functional requirements</strong> — performance, security, audit, monitoring, availability</li><li><strong>Acceptance criteria</strong></li><li><strong>Decisions, open questions, assumptions</strong></li><li><strong>Change history</strong> — what changed, why, who approved it</li></ol><p>Section 14 looks like bureaucracy until the first time someone asks why the system behaves a certain way and the answer isn’t in anyone’s head anymore.</p><h3>The handoff test</h3><p>Give the document to someone who wasn’t in any of the meetings. Can they work out the business problem, the flow, the rules, where the data comes from, what happens when it fails, what’s still undecided, and what “done” means?</p><p>If the answer depends on you being available to explain it, the document isn’t finished. And you will not always be available. Teams rotate, developers leave, product owners change, vendors get replaced. The document has to carry the reasoning, not just the final screen design.</p><p>One more thing, and it’s the part almost everyone skips: keep it alive. Being correct on approval day means nothing if the payment provider adds a new response code, the ERP field turns out to be shorter than promised, a regulation changes, or the business quietly rewrites the cancellation process. When the system moves and the document doesn’t, you’ve taken on documentation debt, and it accrues interest in the form of everyone gradually deciding the document can’t be trusted. Once that happens you can’t get it back.</p><p>None of this is about predicting every technical decision. It’s about creating enough clarity that a group of people, working separately, build the same thing.</p><p>That’s the whole measurement. Not how long the document is. How much argument it makes unnecessary.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3dab207d5355" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of AI Agents: How Autonomous AI Systems Are Reshaping Our Digital Future]]></title>
            <link>https://medium.com/@humeyraboluk/the-rise-of-ai-agents-how-autonomous-ai-systems-are-reshaping-our-digital-future-27e8d174997c?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/27e8d174997c</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[agentic-workflow]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 20:02:34 GMT</pubDate>
            <atom:updated>2025-03-10T20:06:47.924Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been planning to build AI agents to automate and simplify my life, and I’m excited about the possibilities this technology offers. As I dive deeper into this field, I wanted to share some insights about these powerful tools that are transforming how we interact with technology.</p><p>In recent years, we’ve witnessed an extraordinary evolution in artificial intelligence. From simple rule-based systems to sophisticated language models, AI has steadily permeated our digital landscape. But perhaps the most transformative development in this space has been the emergence of AI agents — autonomous systems designed to perceive their environment, make decisions, and take actions to achieve specific goals without constant human supervision.</p><h3>What Are AI Agents?</h3><p>AI agents are software entities that can perform tasks or services for users by combining multiple AI capabilities into cohesive, goal-oriented systems. Unlike traditional AI models that respond passively to prompts, AI agents actively engage with their environments, learning from interactions and adjusting their behavior accordingly.</p><p>Also there are another descriptions about AI Agents. I recommend to read the post from Anthropic.</p><ul><li><a href="https://www.anthropic.com/engineering/building-effective-agents">https://www.anthropic.com/engineering/building-effective-agents</a></li></ul><p>The defining characteristics of AI agents include:</p><ul><li><strong>Autonomy</strong>: They can operate independently, making decisions based on their programming and learned experiences.</li><li><strong>Reactivity</strong>: They can perceive and respond to changes in their environment.</li><li><strong>Proactivity</strong>: They can take initiative toward achieving their goals.</li><li><strong>Social ability</strong>: Advanced agents can communicate with users and other agents.</li><li><strong>Learning capability</strong>: They can improve their performance over time.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/0*r2eNGgqeIOrUN6O1.jpg" /><figcaption><a href="https://tr.pinterest.com/pin/1036531670487627192/">https://tr.pinterest.com/pin/1036531670487627192/</a></figcaption></figure><h3>The Current State of AI Agents</h3><p>Today’s AI agent landscape is remarkably diverse, ranging from simple chatbots to sophisticated virtual assistants. Several categories have emerged:</p><h3>Personal Assistants</h3><p>Virtual assistants like Siri, Alexa, and Google Assistant represent the most widely adopted form of AI agents. These systems integrate natural language processing, knowledge bases, and task automation to help users with everyday activities — from setting reminders to controlling smart home devices.</p><h3>Autonomous Agents in Business</h3><p>In the business realm, autonomous agents are streamlining operations across industries. Customer service bots handle routine inquiries, sales agents qualify leads and schedule appointments, and research agents gather and synthesize information from vast data repositories.</p><h3>Development and Coding Agents</h3><p>One of the most exciting developments has been the rise of coding assistants and development agents. GitHub’s Copilot, Claude Code, and similar tools not only suggest code but increasingly can understand requirements, plan implementations, and debug complex programs.</p><h3>Data Analysis Agents</h3><p>These specialized systems can explore datasets, identify patterns, and generate insights without constant human direction. They’re transforming how businesses approach data science, making sophisticated analysis accessible to non-specialists.</p><h3>Real-World Applications and Impact</h3><p>The practical applications of AI agents are multiplying rapidly:</p><p><strong>Healthcare</strong>: Diagnostic agents analyze medical images and patient data to identify potential concerns, while therapeutic agents provide mental health support through conversational interfaces.</p><p><strong>Finance</strong>: Trading agents execute transactions based on market conditions and risk parameters, while fraud detection agents continuously monitor for suspicious activities.</p><p><strong>Education</strong>: Tutoring agents provide personalized instruction and feedback, adapting to students’ learning styles and progress.</p><p><strong>Creative Industries</strong>: Content generation agents assist with writing, design, and media production, expanding the creative possibilities available to professionals.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i1RZee2J8oCsIFnW" /><figcaption>Photo by <a href="https://unsplash.com/@growtika?utm_source=medium&amp;utm_medium=referral">Growtika</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The Technology Behind AI Agents</h3><p>The capabilities of today’s AI agents rest on several technological foundations:</p><p><strong>Foundation Models</strong>: Large language models (LLMs) like those from <strong>Anthropic, OpenAI</strong>, and <strong>Google</strong> provide the reasoning and language understanding capabilities essential to modern agents.</p><p><strong>Reinforcement Learning from Human Feedback (RLHF)</strong>: This approach allows agents to learn complex behaviors by receiving feedback on their actions, helping them align with human preferences and values.</p><p><strong>Tool Use and API Integration</strong>: The ability to call external tools and APIs dramatically extends what agents can accomplish, allowing them to interact with other software systems.</p><p><strong>Multi-agent Systems</strong>: Frameworks enabling multiple specialized agents to collaborate are emerging, allowing for more complex problem-solving than any single agent could achieve.</p><p><em>Note: While ethical considerations around AI agents are certainly important, I’ve chosen to focus this article on the practical and technical aspects of building and using AI agents.</em></p><h3>Platforms and Tools for Building AI Agents</h3><p>For those interested in building their own AI agents like I am, there are several accessible platforms and tools available today:</p><p><a href="https://n8n.io/"><strong>n8n</strong></a><strong>: </strong>n8n is a workflow automation tool that enables users to create and manage complex workflows without writing code. It allows integration between various applications and services, automating tasks such as data transfers, notifications, and more. It gives you the no code experience.</p><p><a href="https://www.langchain.com/"><strong>LangChain</strong></a>: This popular framework allows developers to build applications powered by language models. It provides tools for connecting LLMs to other sources of data and enabling them to interact with their environment.</p><p><strong>AutoGPT</strong>: An experimental open-source application that aims to make GPT-4 fully autonomous. It chains together LLM calls to autonomously achieve whatever goal you set.</p><p><strong>BabyAGI</strong>: A simple Python system demonstrating task creation and prioritization using language models. It’s ideal for people starting their journey with AI agents.</p><p><a href="https://www.llamaindex.ai/"><strong>LlamaIndex</strong></a>: A data framework for connecting custom data sources to large language models, helping agents access and reason about your personal or company information.</p><p><a href="https://www.langflow.org/"><strong>Langflow</strong></a>: A UI-based tool for building LangChain applications through a drag-and-drop interface, making agent creation more accessible to non-programmers.</p><p><a href="https://e2b.dev/"><strong>E2B Devs</strong></a>: Provides secure serverless environments for running AI agents, making deployment more straightforward. E2B is an open-source runtime for executing AI-generated code in secure cloud sandboxes.</p><p><a href="https://www.crewai.com/open-source"><strong>Crew.ai:</strong></a><strong> </strong>CrewAI is an <strong>open-source</strong> multi-agent orchestration framework designed to facilitate collaboration among autonomous AI agents. It enables developers to build and deploy automated workflows where agents with specific roles work together to complete complex tasks efficiently.</p><p>Yes, so many options here.</p><h3>The Future Trajectory</h3><p>Looking ahead, several trends are likely to shape the evolution of AI agents:</p><p><strong>Increased Autonomy</strong>: Agents will likely gain greater latitude to make decisions and take actions without explicit human direction.</p><p><strong>Improved Reasoning</strong>: Enhanced reasoning capabilities will enable agents to handle more complex, nuanced tasks.</p><p><strong>Multimodal Capabilities</strong>: Future agents will seamlessly work across text, images, audio, and video, enabling richer interactions.</p><p><strong>Personalization</strong>: Agents will become increasingly tailored to individual users’ needs, preferences, and interaction styles.</p><p><strong>Embodiment</strong>: Virtual agents may increasingly appear in augmented and virtual reality environments, while physical robots will incorporate more sophisticated agent capabilities.</p><h3>Conclusion</h3><p>AI agents represent a significant shift in how we interact with technology — from tools we actively direct to partners that share in the cognitive load of our digital lives. Their continued development will likely reshape numerous industries and create new opportunities for innovation.</p><p>As for me, I intend to integrate AI agents into my daily routine and personal life. I’m excited about building systems that can handle repetitive tasks, organize my information, and help me make better decisions. My goal is to create a network of specialized agents that make my life easier and more productive, freeing up time for creative and strategic thinking.</p><p>The age of AI agents has only just begun, and the coming years promise remarkable advances in what these systems can accomplish. For professionals across industries, understanding the capabilities, limitations, and implications of this technology will be increasingly essential in navigating our evolving digital landscape. I’m looking forward to being part of this journey and sharing more of my experiences as I build and deploy my own AI agents.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27e8d174997c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Predicting Driver and Team Performance in Formula 1 for 2025 Using Machine Learning ️]]></title>
            <link>https://medium.com/@humeyraboluk/predicting-driver-and-team-performance-in-formula-1-for-2025-using-machine-learning-%EF%B8%8F-1835efb1392d?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/1835efb1392d</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[racing-car]]></category>
            <category><![CDATA[predicting-the-future]]></category>
            <category><![CDATA[feature-engineering]]></category>
            <category><![CDATA[formula-1]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Sun, 29 Dec 2024 10:58:19 GMT</pubDate>
            <atom:updated>2024-12-29T10:58:19.338Z</atom:updated>
            <content:encoded><![CDATA[<p>Formula 1 (F1) is not just a sport; it’s a global phenomenon where technology, strategy, and human skill come together in an exhilarating competition. Inspired by this dynamic world, I undertook a project aimed at predicting future performance of drivers and teams using machine learning. This blog post outlines the journey of that project, detailing the problem definition, methodology, results, and key takeaways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gAArPP3o3OYw41oTF61YTg.jpeg" /></figure><h3>Problem Definition</h3><p>The main goal of this project was to predict the top three drivers for the 2025 F1 season based on historical data(1950–2024). Achieving such a goal is crucial for various stakeholders:</p><ul><li><strong>Sponsors</strong>: To make informed investment decisions.</li><li><strong>Teams</strong>: To refine strategies and gain a competitive edge.</li><li><strong>Fans</strong>: To enhance engagement by building anticipation.</li></ul><p>To achieve this, I utilized 14 comprehensive datasets covering various aspects of F1, ranging from <strong>race results to driver statistics</strong>, many of which were sourced from <a href="https://www.kaggle.com/datasets/rohanrao/formula-1-world-championship-1950-2020"><em>Kaggle</em></a><em>,</em> a favorite platform among data scientists and analysts.</p><h3>Data Analysis</h3><h3>Data Sources</h3><p>The project utilized the following datasets:</p><ul><li><strong>circuits.csv</strong>: Details about the tracks (e.g., names, locations).</li><li><strong>constructor_results.csv</strong>: Team results and points earned.</li><li><strong>constructor_standings.csv</strong>: Team rankings per season.</li><li><strong>constructors.csv</strong>: Team metadata.</li><li><strong>driver_standings.csv</strong>: Driver rankings and performance metrics.</li><li><strong>drivers.csv</strong>: Driver information (e.g., names, birthdates).</li><li><strong>lap_times.csv</strong>: Lap-by-lap performance.</li><li><strong>pit_stops.csv</strong>: Pit stop durations and details.</li><li><strong>qualifying.csv</strong>: Qualifying session data.</li><li><strong>races.csv</strong>: Race schedules and details.</li><li><strong>results.csv</strong>: Detailed race results.</li><li><strong>seasons.csv</strong>: Season-level metadata.</li><li><strong>sprint_results.csv</strong>: Sprint race outcomes.</li><li><strong>status.csv</strong>: Reasons for non-finishes (e.g., crashes, disqualifications).</li></ul><h3>Key Features Engineered</h3><ul><li>Cumulative points from the last three seasons.</li><li>Average finishing position.</li><li>Total races participated.</li><li>Driver’s age.</li><li>Total victories and points per team.</li></ul><h3>Data Preprocessing</h3><h4>Handling Missing Values</h4><p>Certain columns, such as Q2 and Q3 times in the qualifying dataset, contained missing values. As these were not critical for predictions, they were left as is.</p><h4>Outlier Detection and Treatment</h4><p>Outliers in metrics like points, position order, and laps completed were detected using the Interquartile Range (IQR) method and appropriately handled. For instance:</p><ul><li>Over 3,700 outliers were cleaned from the points column in the results dataset.</li><li>More than 4,000 outliers were removed from the wins column in the driver standings dataset.</li></ul><h4>Feature Integration</h4><p>Driver statistics, team rankings, and cumulative points were combined into a comprehensive dataset that encapsulated historical performance trends.</p><h3>Model Development</h3><h4>Algorithm Used</h4><p>A Random Forest Regressor was chosen for its ability to handle complex relationships and avoid overfitting. Key features included:</p><ul><li>Points from the last three seasons.</li><li>Average position.</li><li>Total races.</li><li>Driver age.</li></ul><h4>Model Performance</h4><ul><li><strong>Cross-validation Mean Squared Error (MSE)</strong>: 166.71</li><li><strong>Test set MSE</strong>: 123.38</li></ul><p>These metrics indicate a reliable model capable of producing meaningful predictions.</p><h3>Results</h3><p>The model’s predictions for the 2025 season revealed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zZEb1_phAMEFyqHydDkUZw.png" /><figcaption>Predicted Results</figcaption></figure><p>Additionally, the predicted winning team was <strong>Red Bull Racing</strong>, further cementing their dominance in F1.</p><h3>Recommendations for Improvement</h3><ul><li><strong>Feature Expansion</strong>: Incorporate additional variables like track types and weather conditions.</li><li><strong>Alternative Algorithms</strong>: Experiment with Gradient Boosting or XGBoost for potential performance gains.</li><li><strong>Data Transformations</strong>: Apply logarithmic transformations or feature standardization to enhance model accuracy.</li><li><strong>Missing Value Imputation</strong>: Utilize predictive methods rather than leaving missing values untouched.</li></ul><h3>Technologies Used</h3><ul><li><strong>Programming Language</strong>: Python</li><li><strong>Libraries</strong>: Pandas, NumPy, Scikit-learn, Matplotlib</li><li><strong>IDE</strong>: PyCharm</li></ul><h3>Conclusion</h3><p>This project laid a solid foundation for using machine learning in F1 performance prediction. The end-to-end process — from data analysis to model development — demonstrates the viability of leveraging historical data to forecast future trends.</p><p>I enjoyed doing this project because I love F1 and the competition story behind it. 🏎️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1835efb1392d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reviews Analysis with Python]]></title>
            <link>https://medium.com/@humeyraboluk/reviews-analysis-with-python-bd5e3f016fdf?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd5e3f016fdf</guid>
            <category><![CDATA[selenium]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[google-maps]]></category>
            <category><![CDATA[scraping]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Mon, 16 Oct 2023 13:38:00 GMT</pubDate>
            <atom:updated>2023-10-17T06:34:26.849Z</atom:updated>
            <content:encoded><![CDATA[<p>Before visiting a place, we all check the reviews on Google Maps. Sometimes, we read a few reviews and decide what we want to do. But what if I told you there is an automated way to do this? With this method, you can understand whether a place is good or bad in a few seconds, using a more analytical approach.</p><p>Okay, I hope you are excited cause ı was. I really want to go to Amsterdam someday but some people say that it is not quite great and according to them ı could visit another country or city. Also there are some people love the city so much, especially night time of the city was georgous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*w0gyKJ6S1HKdLyQi" /><figcaption>Photo by <a href="https://unsplash.com/@jordanmerrick?utm_source=medium&amp;utm_medium=referral">Jordan Merrick</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Anyway, ı decided to do my own research and ı dive in to this data scrape methods. Google maps has also API services for this kinda needs but ı think you have to purchase this services. There ise always a solution so ı use python and special python packages such as selenium. The detail about the scraping part that ı talked my other medium article called <a href="https://medium.com/@humeyraboluk/automated-extraction-of-business-or-location-information-from-google-maps-using-python-and-efcdd4cb3c26">“Automated Extraction of Business or Location Information from Google Maps using Python and Selenium”</a>.</p><p>This article will be related to the analysis of the reviews I have scraped. Because the part I’m wondering is, is it good or bad? What do people think about the place that ı want to go some day?</p><p>First of all we have the data have scraped. Requirement Python packages/libraries are:</p><ol><li><strong>pandas</strong>: This is used for data manipulation and analysis.</li><li><strong>matplotlib</strong>: This is used for data visualization.</li><li><strong>wordcloud:</strong> This is used to create word clouds.</li><li><strong>sklearn</strong>: Specifically, TfidfVectorizer and KMeans are used from the scikit-learn library for feature extraction and clustering, respectively.</li><li><strong>gensim</strong>: Specifically, the Word2Vec model is used for word embeddings and similarity calculations.</li><li><strong>datetime:</strong> While not a package that needs to be installed separately (as it’s part of Python’s standard library), the timedelta class from the datetime module is used in the date format update function.</li></ol><p>To install these packages, you would typically use pip:</p><pre>pip install pandas matplotlib wordcloud scikit-learn gensim</pre><h4>1. General info about the data</h4><p>Let’s start with a general information and basic statistical analysis of the data.</p><p><strong>General Information:</strong></p><p>There are a total of 510 rows and 5 columns. Columns: ID, Client_Name, Rating, Reviews, Date</p><p><strong>Basic Statistics:</strong></p><p>ID: Has unique values ranging from 0 to 509.</p><p>Client_Name: All values are unique.</p><p>Rating: Has values ranging from 1 to 5.</p><p>Reviews: All values are unique.</p><p>Date: Has 22 unique values. The most frequently encountered value is “a month ago”.</p><p><strong>Missing Values:</strong></p><p>There are no missing values in any column.</p><p>Unique Values:</p><p>The ID and Client_Name columns have entirely unique values. The Rating column has 5 unique values. The Reviews column has entirely unique values. The Date column has 22 unique values.</p><p>Here are the code snippet for that:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q3zEbJ885acp93TTlNNf5g.png" /></figure><h4>2. Date Formatting</h4><p>Let’s proceed to the second step and update the “Date” column. I will update the values in the “Date” column to the format dd/mm/yyyy. In this step, I’ll calculate expressions like “bir gün önce” (a day ago), “bir hafta önce” (a week ago), etc., relative to the reference date of 13.10.2023 and update the date accordingly.</p><ol><li>Define a function to handle the conversion.</li><li>For each date string in the “Date” column:</li></ol><ul><li>If it contains “gün” (day), subtract that many days from the reference date.</li><li>If it contains “hafta” (week), subtract that many weeks from the reference date.</li><li>If it contains “ay” (month), subtract that many months (approximated as 30 days each) from the reference date.</li><li>If it contains “yıl” (year), subtract that many years (365 days each) from the reference date.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2cNMJ3PjUUDBKNCXRppgHw.png" /></figure><p>After changing the format of the date column first 5 rows are look like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/1*8uFMUJLoJ3SiTQbD5ZtR7w.png" /></figure><h4>3.Graph of the Number of Reviews Received over Time</h4><p>For the next step, let’s create a graph showing the number of reviews received on different dates. After that, let’s analyze the rating distribution of reviews from the period or periods that received the most reviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-RsCB-Q9wgz_4QsPzGnFLg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BcKFZhdujC9Tsu_a764-Bg.png" /></figure><blockquote>The graph shows the change in the number of reviews received over time. The date with the most reviews is 13/09/2023, and a total of 95 reviews were received on this date.</blockquote><h4>4.Rate Distribution</h4><p>Now, let’s look at the distribution of ratings for the reviews received on this date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GW-hutsKyV3RsNQo_8fsjg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*-hiMUZCjpvDFGCaRJLrqxw.png" /></figure><blockquote>The distribution of ratings for the reviews received on 13/09/2023 is as follows:</blockquote><blockquote>1 Point: 6 reviews</blockquote><blockquote>2 Points: 1 review</blockquote><blockquote>3 Points: 8 reviews</blockquote><blockquote>4 Points: 23 reviews</blockquote><blockquote>5 Points: 57 reviews</blockquote><blockquote>Based on this distribution, the majority of the reviews received on this date, which is the date with the most reviews, are positive (4 and 5 star) reviews.</blockquote><h4>5.Distribution of the length of the reviews</h4><p>Let’s show the distribution of the length of each review and calculate the average length value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UvXrIN0bjnqB4Ut4D5eZAQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*4GIH6DLy4ApiDi1YwawvDQ.png" /></figure><blockquote>According to the histogram showing the distribution of the length of the reviews, we see that many reviews are in the range of 0–200 characters.</blockquote><blockquote>The average review length is approximately <strong>138 characters</strong>.</blockquote><h4>6. Removing these words from the reviews using the “turkce-stop-words.txt” list</h4><p>In this step, I will remove the stop words from the reviews by reading the stop words list from the “turkce-stop-words.txt” file. I will also remove the reviews that contain the phrase “No review found” from the dataset. (<em>You can find the list of the stop words easily in any website.</em>)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*49GgK9CmzXdACFuCl775zA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*LbQPzBMik_NSRp-X57gnvw.png" /></figure><h4>7. Creating a word cloud of the reviews:</h4><p>First, let’s create a word cloud of all the reviews. Then, we will see most common words used in reviews easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v5S9eCi2CvpCD76V1tyCBg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*fJ5vCGeGWUuYtMKMsmQcMQ.png" /></figure><blockquote>As we can see from the word cloud, Amsterdam’s nightlife and its crowdedness are mentioned quite a bit.</blockquote><h4>8. Negative Review Analysis:</h4><p>As I mentioned at the beginning of my article, I want to go to Amsterdam, but what are the negative aspects that I should consider when I go? In this step, we will examine the negative reviews to answer this question. We will examine the negative reviews with a score of “1, 2, or 3” and create separate word clouds for positive (4 and 5-star) and negative reviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8p4S_oXiBljdPiPgaHHIYQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxSC05WfPyhDt2uV95OcFQ.png" /></figure><blockquote>We created word clouds for positive and negative reviews:</blockquote><blockquote><strong>Negative Review Word Cloud: </strong>In this cloud, we see that the words “Amsterdam”, “very”, and “but” are frequently used. Negative reviews often include complaints about the red-light district, prices, and experiences.</blockquote><blockquote><strong>Positive Review Word Cloud: </strong>Positive reviews contain positive expressions such as “Amsterdam”, “great”, and “amazing”, and often include positive feedback about the red-light district, experiences, and places to visit.</blockquote><h4>9. Sentiment Analysis (Sentiment Analysis):</h4><p>In this step, we will perform a simple sentiment analysis to determine the overall sentiment of the reviews (positive, negative, or neutral). For this purpose, we will assign a rough sentiment label based on the reviews’ ratings. Specifically:</p><ul><li>If the rating is 1 or 2: Negative</li><li>If the rating is 3: Neutral</li><li>If the rating is 4 or 5: Positive</li></ul><p>By assigning these labels to the reviews, we will examine the results of the sentiment analysis.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymHDVjS8Zx-mt4HgGi-K4w.png" /></figure><pre>Sentiment<br>Positive    417<br>Neutral      48<br>Negative     45<br>Name: count, dtype: int64</pre><blockquote>According to the results of the sentiment analysis:</blockquote><blockquote>417 reviews are <strong>“Positive”</strong> 48 reviews are <strong>“Neutral”</strong> 45 reviews are <strong>“Negative”</strong></blockquote><blockquote>These results show that the majority of the reviews are positive.</blockquote><h4>10. Data Clustering</h4><p>In this step, we will use the K-means clustering method to divide the reviews into clusters based on their content. Specifically, we will create clusters using the vectors obtained by vectorizing the reviews using the TF-IDF vectorization method. Then, we will try to understand the general theme represented by each cluster.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xwi2OA3jG2faRVhGZIhIEQ.png" /></figure><pre>Cluster<br>3    193<br>1    110<br>4     79<br>2     73<br>0     55<br>Name: count, dtype: int64</pre><blockquote>We have clustered the reviews into 5 different groups using the K-means clustering method. The number of reviews in these clusters are as follows:</blockquote><blockquote>Cluster 0: 75 reviews</blockquote><blockquote>Cluster 1: 83 reviews</blockquote><blockquote>Cluster 2: 39 reviews</blockquote><blockquote>Cluster 3: 268 reviews</blockquote><blockquote>Cluster 4: 45 reviews</blockquote><blockquote>Now, to understand the general theme of each cluster, let’s examine the reviews closest to the center of these clusters. These reviews represent the general themes of the clusters. Let’s examine the 3 reviews closest to the center for each cluster.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oFIm9-ia5G28H7S-dyCDbg.png" /></figure><blockquote><em>Based on these reviews, we can say that each cluster represents certain themes or topics. For example, Cluster 0 seems to focus on the Red Light District and tourist experiences, Cluster 1 on the city and nightlife, and Cluster 3 on the general Amsterdam experience and atmosphere.</em></blockquote><blockquote><em>Cluster 0:</em></blockquote><blockquote><em>Women displaying themselves in windows. Colorful scene. I recommend tourists to visit. I hadn’t seen anything like it before.</em></blockquote><blockquote><em>Red Light District, also known as Kırmızı Fener Street in Turkish, is a world-famous area in Amsterdam that tourists visit. When you think of Amsterdam, the Red Light District undoubtedly comes to mind first.</em></blockquote><blockquote><em>It’s one of Europe’s major tourist areas. Red Light was incredibly crowded and vibrant. Despite the crowd, there was a peaceful atmosphere.</em></blockquote><blockquote><em>Cluster 1:</em></blockquote><blockquote><em>One of the interesting places in Amsterdam, worth seeing. The center of the city’s nightlife.</em></blockquote><blockquote><em>This place is an example of how culture, including the concept of entertainment, has changed. It’s a must-see in Amsterdam, but not the only place to visit.</em></blockquote><blockquote><em>The canal and historic buildings are beautiful; there were no problems when we passed by during daylight.</em></blockquote><blockquote><em>Cluster 2:</em></blockquote><blockquote><em>I like staying here during the day. Not many tourists, and since it’s the city center, there are many shops.</em></blockquote><blockquote><em>We liked many museums; the city offers a view. The Red Light district fills with people over time.</em></blockquote><blockquote><em>The canal and historic buildings are beautiful; there were no problems when we passed by during daylight.</em></blockquote><blockquote><em>Cluster 3:</em></blockquote><blockquote><em>One of the city’s crowded spots. It’s possible to see something unique to Amsterdam in the vicinity.</em></blockquote><blockquote><em>We went at night while in Amsterdam — a fun atmosphere.</em></blockquote><blockquote><em>It has lost its old vibe and popularity, and has turned into a street just for those drinking beer and smoking weed.</em></blockquote><blockquote><em>Cluster 4:</em></blockquote><blockquote><em>Red Light District, also known as Kırmızı Fener Street in Turkish, is a world-famous area of Amsterdam.</em></blockquote><blockquote><em>Actually, it’s just a regular Amsterdam street, with cafes and mannequins in red-lit windows wearing lingerie.</em></blockquote><blockquote><em>Actually, it’s just a regular Amsterdam street, with cafes and mannequins in red-lit windows wearing lingerie.</em></blockquote><h4>11. Word2Vec:</h4><p>Word2Vec model captures semantic relationships between words by converting words into vectors. Now, we will train a Word2Vec model for the words that appear in the reviews, and we will examine the semantic relationships between words using this model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YspHIsTToDuzfCZJeCJZkA.png" /></figure><pre>[(&#39;ziyaret&#39;, 0.9753733277320862),<br> (&#39;…&#39;, 0.9712611436843872),<br> (&#39;sayıda&#39;, 0.9693472385406494),<br> (&#39;var.&#39;, 0.9691233038902283),<br> (&#39;kalabalık&#39;, 0.9690001010894775),<br> (&#39;geceleri&#39;, 0.9688677787780762),<br> (&#39;zaman&#39;, 0.9687459468841553),<br> (&#39;yer.&#39;, 0.9684391021728516),<br> (&#39;insan&#39;, 0.968426525592804),<br> (&#39;gerçekten&#39;, 0.9681441783905029)]</pre><blockquote>The words:</blockquote><blockquote>visit</blockquote><blockquote>… (ellipsis)</blockquote><blockquote>number of</blockquote><blockquote>exist.</blockquote><blockquote>crowded</blockquote><blockquote>at night</blockquote><blockquote>time</blockquote><blockquote>place.</blockquote><blockquote>human</blockquote><blockquote>really</blockquote><blockquote>These words show which terms are commonly used in conjunction with the word <strong>“Amsterdam”</strong> in the reviews. Particularly words like “visit”, “crowded”, and “at night” are frequently used together with the term “Amsterdam”.</blockquote><h4>12. Categorization of Negative Comments</h4><p>To categorize negative comments, we can determine general topic headings that represent these comments using specific keywords or phrases. For instance, comments that mention the word “smell” can belong to the “Bad Smell” category. Now, let’s categorize the negative comments and analyze which topics are most complained about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PPa5M_60iyYaBFSmws330Q.png" /></figure><pre>Category<br>Other          31<br>Bad Smell       8<br>Overcrowded     4<br>High Prices     2<br>Name: count, dtype: int64</pre><p>The distribution of negative reviews by category is as follows:</p><p>Other: 31 reviews</p><p>Bad smell: 8 reviews</p><p>Overcrowded: 4 reviews</p><p>High prices: 2 reviews</p><p>This categorization shows that negative reviews are often grouped under certain topic headings. For example, topics such as “Bad smell” and “Overcrowded” are among the most common complaints from visitors.</p><h4>Conclusion</h4><p>Of course, you can also decide by looking at the average rating value and looking a few reviews instead of doing this. However, why should we be content with a few reviews when there are many more to be examined? I think it is worth considering, as it is possible to make the right decisions with this kind of analytical approach at every point in our lives.<br>Also, I definitely want to go to Amsterdam :))</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HxaNDeLPSI45O0TpNBTxPA.png" /></figure><p><em>Humo The Analyst 👋👋…</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd5e3f016fdf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automated Extraction of Business or Location Information from Google Maps using Python and…]]></title>
            <link>https://medium.com/@humeyraboluk/automated-extraction-of-business-or-location-information-from-google-maps-using-python-and-efcdd4cb3c26?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/efcdd4cb3c26</guid>
            <category><![CDATA[selenium-webdriver]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[google-maps]]></category>
            <category><![CDATA[automation]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Tue, 03 Oct 2023 06:36:35 GMT</pubDate>
            <atom:updated>2023-10-11T06:36:12.069Z</atom:updated>
            <content:encoded><![CDATA[<h3>Automated Extraction of Business or Location Information from Google Maps using Python and Selenium</h3><h3>1. Introduction</h3><p>Google Maps is a vast repository of business information, including name, address, phone number, website, hours of operation, reviews, and ratings. This data can be valuable for a variety of purposes, such as market research, competitive analysis, and location-based marketing.</p><p>This article describes how to programmatically extract business data from Google Maps using Python and the Selenium library. Selenium is a web automation framework that allows you to control a web browser from your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZsVFomhm9Xb6IZaEvMXw1Q.png" /></figure><h4><strong>Requirements</strong></h4><p>To run the script below, you will need the following:</p><ul><li>Python 3</li><li>Selenium</li><li>Chrome web browser</li></ul><h4>Getting Started</h4><p>Install the required Python packages:</p><pre>pip install selenium<br>pip install webdriver_manager</pre><p>For Selenium to control the Chrome browser, it requires ChromeDriver. <em>WebDriver Manager</em> automatically downloads and installs the correct version of ChromeDriver.</p><h3>2. GoogleMapScraper: The Core Class</h3><p>At the heart of our script is the GoogleMapScraper class, architectured specifically for business data extraction from Google Maps. Key attributes of this class include:</p><ul><li><strong>output_file_name:</strong> Specifies the name of the resultant CSV file.</li><li><strong>headless: </strong>A flag determining the visibility of the browser during operation.</li><li><strong>driver:</strong> A pivotal component for web page interactions.</li><li><strong>unique_check:</strong> Ensures the uniqueness of the scraped data.</li></ul><h3>3. Web Browser Configuration</h3><p>The config_driver function is integral in setting up the Chrome web browser for our tasks. The ability to run in &#39;headless&#39; mode, i.e., without a visual interface, is crucial for operations where a display is redundant or for server-side applications.</p><pre>class GoogleMapScraper:<br>    def __init__(self):<br>        self.output_file_name = &quot;google_map_business_data.csv&quot;<br>        self.headless = False<br>        self.driver = None<br>        self.unique_check = []<br><br>    def config_driver(self):<br>        options = webdriver.ChromeOptions()<br>        if self.headless:<br>            options.add_argument(&quot;--headless&quot;)<br>            options.add_argument(&#39;--ignore-ssl-errors=yes&#39;)<br>            options.add_argument(&#39;--ignore-certificate-errors&#39;)<br><br>        s = Service(ChromeDriverManager().install())<br>        driver = webdriver.Chrome(service=s, options=options)<br>        self.driver = driver</pre><h3>4. Dynamically Loading and Scrolling Pages</h3><p>Google Maps dynamically loads business details, revealing only a subset at a time. The load_companies function overcomes this by programmatically scrolling, ensuring that the script captures every business listing until the end.</p><p><strong>A little note here:</strong> XPath locators can be dynamic, so it is important to verify them before using them in your code.</p><pre>def load_companies(self, url):<br>        print(&quot;Getting business info&quot;, url)<br>        self.driver.get(url)<br>        time.sleep(5)<br>        panel_xpath = &#39;//body[1]/div[3]/div[8]/div[9]/div[1]/div[1]/div[1]/div[2]/div[1]/div[1]/div[1]/div[1]/div[2]&#39;<br>        scrollable_div = self.driver.find_element(By.XPATH, panel_xpath)<br>       <br>        flag = True<br>        i = 0<br>        while flag:<br>            print(f&quot;Scrolling to page {i + 2}&quot;)<br>            self.driver.execute_script(&#39;arguments[0].scrollTop = arguments[0].scrollTop + 6500&#39;, scrollable_div)<br>            time.sleep(2)<br><br>            if &quot;You&#39;ve reached the end of the list.&quot; in self.driver.page_source:<br>                flag = False<br><br>            self.get_business_info()<br>            i += 1</pre><h3>5. Detailed Business Data Extraction</h3><p>The get_business_info function is the workhorse of our script, meticulously extracting details like business name, rating, reviews, and review date. The process entails:</p><ul><li>Awaiting the presence of elements on the page.</li><li>Iterating and sifting through each business entity.</li><li>Tapping into the aria-label attribute and text parsing to garner ratings and dates.</li></ul><pre>def get_business_info(self):<br>        # Add a wait time before starting to scrape the business info<br>        WebDriverWait(self.driver, 10).until(EC.presence_of_all_elements_located((By.CLASS_NAME, &#39;jJc9Ad&#39;)))<br>        <br>        try:<br>            for business in self.driver.find_elements(By.CLASS_NAME, &#39;jJc9Ad&#39;):<br>                name = business.find_element(By.CLASS_NAME, &#39;d4r55&#39;).text<br>                try:<br>                    review = business.find_element(By.CLASS_NAME, &#39;wiI7pd&#39;).text<br>                except NoSuchElementException:<br>                    review = &quot;No review found&quot;<br>                <br>              <br>                # Checking the stars<br>                try:<br>                    stars_element = WebDriverWait(business, 10).until(<br>                        EC.presence_of_element_located((By.XPATH, &#39;.//*[contains(@class, &quot;kvMYJc&quot;)]&#39;))<br>        )<br>        <br>                    full_star_images = stars_element.find_elements(By.XPATH, &#39;.//img[contains(@class, &quot;vzX5Ic&quot;) and not(contains(@src, &quot;rate_empty&quot;))]&#39;)<br>                    empty_star_images = stars_element.find_elements(By.XPATH, &#39;.//img[contains(@src, &quot;rate_empty&quot;)]&#39;)<br>        <br>                    print(f&quot;Full stars count: {len(full_star_images)}&quot;)  # Tam yıldız sayısını yazdır<br>                    print(f&quot;Empty stars count: {len(empty_star_images)}&quot;)  # Boş yıldız sayısını yazdır<br>        <br>                    total_stars = len(full_star_images) + len(empty_star_images)<br>                    rating = total_stars - len(empty_star_images)<br>                    print(f&#39;Rating: {rating} stars&#39;)<br>                except NoSuchElementException:<br>                    print(&quot;Stars element not found for this business.&quot;)<br><br><br>                <br>                # Date check<br>                date_elements = business.find_elements(By.CLASS_NAME, &#39;rsqaWe&#39;)<br>                if date_elements:<br>                    date_text = date_elements[0].text<br>                    print(f&#39;Date text: {date_text}&#39;)  <br>                    date_parts = date_text.split(&quot;, &quot;)<br>                    if len(date_parts) &gt; 1:<br>                        date = date_parts[1]<br>                    else:<br>                        date = date_text  <br>                    print(date)<br>                else:<br>                    print(&#39;Date element not found.&#39;)<br><br><br>                unique_id = &quot;&quot;.join([name, str(rating), review, date])  # rating değişkenini string&#39;e çevirin<br>                if unique_id not in self.unique_check:<br>                    data = [name, rating, review, date]<br>                    self.save_data(data)<br>                    self.unique_check.append(unique_id)<br><br>                    print(unique_id)<br>                    <br>        except NoSuchElementException as e:<br>            print(f&quot;An error occurred: {e}&quot;)</pre><h3>6. Reliable Data Storage</h3><p>Data, once extracted, is systematically stored in a CSV format via the save_data function. Beyond just storage, the function emphasizes data integrity by avoiding duplications through a unique ID mechanism for each review.</p><pre>def save_data(self, data):<br>        header = [&#39;ID&#39;,&#39;Client_Name&#39;,&#39;Rating&#39;,&#39;Reviews&#39;,&#39;Date&#39;]<br>        file_exists = os.path.isfile(self.output_file_name)<br>        with open(self.output_file_name, &#39;a&#39;, newline=&#39;&#39;, encoding=&quot;utf-8&quot;) as csvfile:<br>            writer = csv.writer(csvfile)<br>            if not file_exists:<br>                writer.writerow(header)<br>            writer.writerow([len(self.unique_check)] + data)</pre><h3>7. Sample Implementation</h3><p>Our script’s versatility is demonstrated using <strong>Times Square</strong> as a sample. However, its flexibility is evident, as changing the URL can adapt the script to virtually any location on Google Maps.</p><pre>url = &quot;https://www.google.com/maps/place/Times+Square/@40.7579787,-73.9881175,17z/data=!4m8!3m7!1s0x89c25855c6480299:0x55194ec5a1ae072e!8m2!3d40.7579747!4d-73.9855426!9m1!1b1!16zL20vMDdxZHI?entry=ttu&quot;<br><br><br>business_scraper = GoogleMapScraper()<br>business_scraper.config_driver()<br>business_scraper.load_companies(url)</pre><h3>8. Completing</h3><p>This automated script is not just a utility; it is an enabler for businesses, researchers and data enthusiasts. Its potential is very wide, from improving feature sets to integration with advanced data processing tools. As the data-driven world expands, tools like this will become the basis for collecting information.</p><p>Thanks for reading. I hope you enjoyed it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gs6_QVHsC6vN-FuB" /><figcaption>Photo by <a href="https://unsplash.com/@markuswinkler?utm_source=medium&amp;utm_medium=referral">Markus Winkler</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efcdd4cb3c26" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Scraping Methods: A Deep Dive into Selenium with Python]]></title>
            <link>https://medium.com/@humeyraboluk/data-scraping-methods-a-deep-dive-into-selenium-with-python-bf4d1c7db490?source=rss-f14923177640------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf4d1c7db490</guid>
            <category><![CDATA[business]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[scraping]]></category>
            <dc:creator><![CDATA[Humeyraboluk]]></dc:creator>
            <pubDate>Tue, 26 Sep 2023 08:03:37 GMT</pubDate>
            <atom:updated>2023-09-26T08:03:37.144Z</atom:updated>
            <content:encoded><![CDATA[<p>In the modern digital era, data is gold. With enormous amounts of information available online, extracting this data can provide valuable insights, drive business strategies, and uncover hidden patterns and trends. This extraction process is commonly known as web scraping or data scraping.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X7s2Wo3VgQBNPKl_bKhzbA.jpeg" /><figcaption>Photo by Christina Morillo on <a href="https://www.pexels.com/tr-tr/fotograf/bir-defter-uzerinde-programlama-kadin-1181359/">Pexels</a></figcaption></figure><h3>Overview of Data Scraping Methods</h3><p>Data scraping methods are diverse and adaptable to various needs. Common methods include using APIs, writing custom code with libraries such as Beautiful Soup and Scrapy in Python, and using automated tools and frameworks like Selenium.</p><h3>Why Choose Selenium for Web Scraping?</h3><p>Among these options, Selenium stands out for its robust capabilities and versatility. Selenium is not just a web scraping tool; it’s a browser automation tool primarily used for testing web applications. This means it can interact with and navigate websites just like a human user: clicking buttons, filling out forms, and more.</p><h3>Importance of Web Scraping with Selenium</h3><ol><li>Handling Dynamic Content: Many modern websites use JavaScript to load content dynamically. Traditional scraping tools can’t handle this type of content, but Selenium can, as it controls the web browser directly.</li><li>Automated Testing: Besides scraping, Selenium is widely used for automated testing of web applications, ensuring they work as expected.</li><li>Browser Compatibility: Selenium supports multiple browsers, allowing users to scrape websites as viewed in Chrome, Firefox, Safari, and others.</li></ol><h3>Challenges of Manual Scraping</h3><p>Doing this task manually is not just time-consuming and tedious, but also error-prone. Imagine having to copy data from thousands of web pages daily — the effort is impractical. Moreover, manual scraping can’t interact with dynamic content loaded via JavaScript, limiting the scope of data extraction.</p><h3>How to Web Scrape with Python and Selenium?</h3><h3>Prerequisites</h3><ul><li>Basic knowledge of Python.</li><li>Familiarity with HTML and web structure.</li></ul><h3>Installation</h3><p>To use Selenium, you need to install it first. Run the following command:</p><pre>pip install selenium</pre><p>Next, download the appropriate driver for your browser (e.g., chromedriver for Chrome).</p><pre>from selenium import webdriver<br># Set up the webdriver<br>driver = webdriver.Chrome(executable_path=&#39;path/to/chromedriver&#39;)<br># Open a webpage<br>driver.get(&#39;http://example.com&#39;)<br># Extract data<br>data = driver.find_element_by_id(&#39;data-id&#39;).text<br># Close the driver<br>driver.close()</pre><h3>Data Scraping Methods: A Deep Dive into Selenium with Python</h3><p>In the modern digital era, data is gold. With enormous amounts of information available online, extracting this data can provide valuable insights, drive business strategies, and uncover hidden patterns and trends. This extraction process is commonly known as web scraping or data scraping.</p><h3>Overview of Data Scraping Methods</h3><p>Data scraping methods are diverse and adaptable to various needs. Common methods include using APIs, writing custom code with libraries such as Beautiful Soup and Scrapy in Python, and using automated tools and frameworks like Selenium.</p><h3>Why Choose Selenium for Web Scraping?</h3><p>Among these options, Selenium stands out for its robust capabilities and versatility. Selenium is not just a web scraping tool; it’s a browser automation tool primarily used for testing web applications. This means it can interact with and navigate websites just like a human user: clicking buttons, filling out forms, and more.</p><h3>Importance of Web Scraping with Selenium</h3><ol><li>Handling Dynamic Content: Many modern websites use JavaScript to load content dynamically. Traditional scraping tools can’t handle this type of content, but Selenium can, as it controls the web browser directly.</li><li>Automated Testing: Besides scraping, Selenium is widely used for automated testing of web applications, ensuring they work as expected.</li><li>Browser Compatibility: Selenium supports multiple browsers, allowing users to scrape websites as viewed in Chrome, Firefox, Safari, and others.</li></ol><h3>Challenges of Manual Scraping</h3><p>Doing this task manually is not just time-consuming and tedious, but also error-prone. Imagine having to copy data from thousands of web pages daily — the effort is impractical. Moreover, manual scraping can’t interact with dynamic content loaded via JavaScript, limiting the scope of data extraction.</p><h3>How to Web Scrape with Python and Selenium?</h3><h3>Prerequisites</h3><ul><li>Basic knowledge of Python.</li><li>Familiarity with HTML and web structure.</li></ul><h3>Installation</h3><p>To use Selenium, you need to install it first. Run the following command:</p><pre>pip install selenium</pre><p>Next, download the appropriate driver for your browser (e.g., chromedriver for Chrome).</p><h3>Example Code</h3><p>Below is a basic example demonstrating how to use Selenium to scrape data from a website.</p><pre>from selenium import webdriver<br># Set up the webdriver<br>driver = webdriver.Chrome(executable_path=&#39;path/to/chromedriver&#39;)<br># Open a webpage<br>driver.get(&#39;http://example.com&#39;)<br># Extract data<br>data = driver.find_element_by_id(&#39;data-id&#39;).text<br># Close the driver<br>driver.close()</pre><p>This code will open the webpage, extract text content from an element with a specific ID, and then close the browser.</p><h3>Conclusion</h3><p>In conclusion, Selenium is a powerful tool for web scraping, especially for websites that load data dynamically with JavaScript. Despite a steeper learning curve compared to other tools, the investment in learning Selenium pays off in its extensive capabilities and versatility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tDloNng-RUabIHrW" /><figcaption>Photo by <a href="https://unsplash.com/@markusspiske?utm_source=medium&amp;utm_medium=referral">Markus Spiske</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf4d1c7db490" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>