apartment-finder | A Slack bot that helps you find an apartment | Bot library
kandi X-RAY | apartment-finder Summary
kandi X-RAY | apartment-finder Summary
This repo contains the code for a bot that will scrape Craigslist for real-time listings matching specific criteria, then alert you in Slack. This will let you quickly see the best new listings, and contact the owners. You can adjust the settings to change your price range, what neighborhoods you want to look in, and what transit stations and other points of interest you'd like to be close to.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Crawl API
- Scrape an area
- Find the points of the given location
- Calculate the distance between two points
- Posts listing to Slack
- Returns True if the given coordinates are within the bounding box
apartment-finder Key Features
apartment-finder Examples and Code Snippets
# True if you would like posts with the image preview, and other parameters
# False if you would prefer simple posts with default description & url
ENHANCED_POSTS = True
# enter the parameters you would like to have colour coded
# there are two
## Transit preferences
# The farthest you want to live from a transit stop.
MAX_TRANSIT_DIST = 2 # kilometers
# Transit stations you want to check against. Every coordinate here will be checked against each listing,
# and the closest station name w
BOXES = [
("distillery", [
[43.650516, -79.35236],
[43.655841, -79.370513],
]),
("st-lawrence", [
[43.644507, -79.370513],
[43.655841, -79.376349],
]),
("financial-district", [
[43.644662, -
Community Discussions
Trending Discussions on apartment-finder
QUESTION
I get the following Runtime error when running my dockerfile.
"yarl 1.4+ requires Python 3.5+"
This happens when Docker tries to install the slackclient requirement for my image.
I already have python 3.8 installed on my machine.
What am I doing wrong?
Here is the dockerfile:
...ANSWER
Answered 2020-May-18 at 13:35The version of python you have on your machine is not relevant to the problem. The problem is the version of python within the container you are trying to build. The container does not have access to your system's python.
Ubuntu Trusty Tahr is also known as 14.04. You can treat this version like a date -- this came out in April 2014. You shouldn't use 14.04 because it reached its end-of-life. Also, python 3.5 came out in September 2015 -- after the release of 14.04.
The solution, then, is to use a newer base image. You have many choices, but if you want to stick to ubuntu, then you can use the latest long-term-support (LTS) version, 20.04. To do this, change your FROM
instruction to FROM ubuntu:20.04
. Ubuntu 20.04 uses Python 3.8.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install apartment-finder
Create a Slack team, which you can do here.
Create a channel for the listings to be posted into. Here's help on this. It's suggested to use #housing as the name of the channel.
Get a Slack API token, which you can do here. Here's more information on the process.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page