kreangkrai

gpt2

Jun 7th, 2026
26,565
-1
Never
17
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 2.79 KB | None | 0 1
  1. A detailed technical flow diagram of a web scraping pipeline
  2. for Thai real estate data. Clean minimal style, white background,
  3. light gray connectors, soft shadows on cards.
  4.  
  5. Show two parallel scraping tracks side by side:
  6.  
  7. LEFT TRACK labeled "Facebook Groups":
  8. Step 1: "APScheduler triggers job" (clock icon)
  9. Step 2: "Playwright launches stealth browser" (browser icon)
  10. Step 3: "Load Facebook group page"
  11. Step 4: "Dismiss login wall overlay" (shield icon)
  12. Step 5: "Scroll feed × 6, expand See More buttons"
  13. Step 6: "Extract post text + image URLs per article"
  14. Step 7: "Strip header / footer boilerplate"
  15. Step 8: "Save to ks_raw_posts" (database icon, teal)
  16.  
  17. RIGHT TRACK labeled "DDproperty Portal":
  18. Step 1: "APScheduler triggers job" (clock icon)
  19. Step 2: "Playwright launches stealth browser"
  20. Step 3: "Navigate zone URL (Sukhumvit, Silom, Rama9...)"
  21. Step 4: "Wait for JS render — networkidle"
  22. Step 5: "Extract listing cards via data-testid selectors"
  23. Step 6: "Paginate through results (page=1..10)"
  24. Step 7: "Parse raw_title, raw_price, raw_area, raw_html"
  25. Step 8: "Save to ks_raw_posts" (database icon, teal)
  26.  
  27. Both tracks merge at the bottom into one box:
  28. "ks_raw_posts — raw_text stored, parse_status = pending"
  29.  
  30. On the right side show a vertical "Proxy Layer" panel with:
  31. - Block detector (HTTP 403 / CAPTCHA / selector missing)
  32. - IP rotation arrow
  33. - Circuit breaker states: CLOSED → OPEN → HALF-OPEN
  34.  
  35. Color: teal for Facebook track, blue for DDproperty track,
  36. coral for proxy panel. Rounded rectangle cards.
  37. Arrow connectors with labels. Sans-serif font (Inter or similar).
  38. 16:9 aspect ratio. High resolution infographic.
  39.  
  40. A clean minimal flowchart diagram on white background showing
  41. a web scraper block detection and recovery system.
  42.  
  43. Main flow (left to right):
  44. "Make request" → diamond "Response OK?"
  45. → YES path: "Record success in Redis""Continue scraping"
  46. → NO path: leads to detection layer
  47.  
  48. Detection layer (vertical checklist boxes):
  49. Box 1: "Check HTTP status — 403 / 429 / 503?"
  50. Box 2: "Check page title — contains captcha / blocked?"  
  51. Box 3: "Check selector — expected card found?"
  52. Box 4: "Check result count — less than 50% of 7-day baseline?"
  53.  
  54. Each box has YES/NO branches.
  55. Any YES leads to: "Classify block type"
  56. (4 labels: HTTP_ERROR / CAPTCHA / SILENT_REDIRECT / SOFT_BLOCK)
  57.  
  58. Then: "Get next proxy from Redis pool"
  59. "Exponential backoff (30s → 5min → 30min)"
  60. "Increment retry counter"
  61. diamond "Retry count > 3?"
  62. YES: "Open circuit breaker → Dead letter queue"
  63. NO: loop back to "Make request"
  64.  
  65. Color: light blue for normal flow, amber for detection,
  66. red for blocked states, green for success.
  67. Minimal rounded cards, thin gray connectors,
  68. clean sans-serif labels. White background.
  69. High resolution, 16:9.
Advertisement