Initial commit from Mac
This commit is contained in:
31
.claude/settings.local.json
Normal file
31
.claude/settings.local.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"WebFetch(domain:github.com)",
|
||||
"WebFetch(domain:www.sreality.cz)",
|
||||
"WebFetch(domain:webscraping.pro)",
|
||||
"WebFetch(domain:raw.githubusercontent.com)",
|
||||
"Bash(python3:*)",
|
||||
"Bash(open:*)",
|
||||
"WebFetch(domain:www.realingo.cz)",
|
||||
"WebFetch(domain:api.realingo.cz)",
|
||||
"Bash(curl:*)",
|
||||
"Bash(grep:*)",
|
||||
"WebFetch(domain:www.realitni-pes.cz)",
|
||||
"WebFetch(domain:www.bezrealitky.cz)",
|
||||
"WebFetch(domain:apify.com)",
|
||||
"WebFetch(domain:www.bezrealitky.com)",
|
||||
"WebFetch(domain:reality.idnes.cz)",
|
||||
"Bash(# Final checks: robots.txt and response time for rate limiting clues curl -s -L -H \"\"User-Agent: Mozilla/5.0 \\(Windows NT 10.0; Win64; x64\\) AppleWebKit/537.36 \\(KHTML, like Gecko\\) Chrome/120.0.0.0 Safari/537.36\"\" \"\"https://reality.idnes.cz/robots.txt\"\")",
|
||||
"WebFetch(domain:www.cityhome.cz)",
|
||||
"WebFetch(domain:www.psn.cz)",
|
||||
"WebFetch(domain:www.city-home.cz)",
|
||||
"WebFetch(domain:psn.cz)",
|
||||
"WebFetch(domain:api.psn.cz)",
|
||||
"Bash(done)",
|
||||
"Bash(# Final summary: count total units across all projects\n# Get the total count from the unitsCountData we already extracted\necho \"\"From unitsCountData on /prodej page:\"\"\necho \"\" type_id 0 \\(Prodej bytů a ateliérů\\): 146\"\"\necho \"\" type_id 1 \\(Prodej komerčních nemovitostí\\): 14\"\"\necho \"\" type_id 2 \\(Pronájem bytů\\): 3\"\"\necho \"\" type_id 3 \\(Pronájem komerčních nemovitostí\\): 48\"\"\necho \"\"\"\"\necho \"\"Total for-sale projects: 19\"\"\necho \"\"\"\"\necho \"\"Disposition counts from the data:\"\"\npython3 << 'PYEOF'\n# Extract disposition counts from prodej page\nimport re\n\nwith open\\('/tmp/psn_prodej_p1.html', 'r', encoding='utf-8'\\) as f:\n html = f.read\\(\\)\n\n# Find disposition data\nidx = html.find\\('\\\\\\\\\"disposition\\\\\\\\\":['\\)\nif idx >= 0:\n chunk = html[idx:idx+2000].replace\\('\\\\\\\\\"', '\"'\\)\n # Extract name and count pairs\n import re\n pairs = re.findall\\(r'\"name\":\"\\([^\"]+\\)\",\"count\":\\(\\\\d+\\)', chunk\\)\n for name, count in pairs:\n print\\(f\" {name}: {count}\"\\)\nPYEOF)",
|
||||
"Bash(ls:*)",
|
||||
"Bash(chmod:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user