Skip to content

Instantly share code, notes, and snippets.

View Yonet's full-sized avatar
🎯
Focusing

Yönet Yonet

🎯
Focusing
View GitHub Profile
// Atom settings
[
{
"id": 43366490,
"listing_url": "https://www.airbnb.com/rooms/43366490",
"neighborhood_overview": "LOCATION:- central and easy to get to & from:<br />5 minutes (walking) - Orthodox Temple<br />20 minutes - Miami Beach<br />7 minutes - Aventura Mall <br />10 minutes - Gulfstream: shopping/dining/casino/clubs<br />12 minutes - Sunny Isles beach<br />15 minutes - State park with kayaking(rentals)/bike trails/bbq pavilions. <br />15 minutes - Marina / Deep sea fishing charters<br />20-25 minutes - Miami/Ft Lauderdale airports.<br />8 minutes - Aventura hospital, <br />9 minutes (walking) Temple.",
"latitude": 25.96367,
"longitude": -80.18432,
"property_type": "Entire home",
"bathrooms_text": "2 baths",
"last_review": "2022-09-18",
@Yonet
Yonet / cleanListingsData.js
Created January 12, 2023 20:34
Cleaning the Airbnb data
const { readFile } = require('node:fs/promises');
const { writeFile } = require('node:fs/promises');
const { resolve } = require('node:path');
const deletePropertiesList = ["scrape_id", "source", "last_scraped", "scrape_id", "name", "summary", "space", "description", "experiences_offered", "price", "accomodates", "picture_url", "last_scraped", "source", "host_id", "host_name", "host_since", "host_location", "host_about", "host_response_time", "host_response_rate", "host_acceptance_rate", "host_is_superhost", "host_thumbnail_url", "host_picture_url", "host_neighbourhood", "host_listings_count", "host_total_listings_count", "host_verifications", "host_has_profile_pic", "host_identity_verified", "street", "neighbourhood", "neighbourhood_cleansed", "neighbourhood_group_cleansed", "city", "state", "zipcode", "market", "smart_location", "country_code", "country", "is_location_exact", "room_type", "accommodates", "bathrooms", "bedrooms", "beds", "bed_type", "amenities", "square_feet", "weekly_price", "cleaning_fee"