Comments (5)
can you expand on this? what differences do you see?
from opentaba-server.
Bumped into this while building the tests. look into 30035/plans from the current Heroku app
and try on your computer to rescrape from mmi. the results are different. even the len of the returned json.
maybe I'm doing something wrong.
from opentaba-server.
I think I understand what you're referring to. The way MMI works, they put new plans as belonging to all blocks - ie instead of the plan appearing on the one (sometimes few) gushim it's relevant for, it appears on all >400 blocks in JLM.
Our solution for this is to run clean_db.py, that moves plans which appear in >n blocks into a blacklist, and then filter out results based on that blacklist.
Perhaps a cleaner solution would be to start scraping the plan address, and cross check that with the address->block API (in the longer run maybe drop blocks altogether and just show plans based on street address).
from opentaba-server.
I guess this is the explanation to the problem (I can't recreate the problem on my computer, since I didn't figure out how to run rq
on windows - but from I see in the test logs - where the results array for this gush is much longer then the one in the api)
But the tests run clean_db. So I guess that means that clean_db doesn't work right :(
about the changing of the api that would mean moving the address>block locator to server side, I guess that makes more sense any way doesn't it?
from opentaba-server.
AHA I think I figured our why clean_db doesn't work in the functional tests!
Since clean_db searches for a plans that appear over a certain threshold and since The tests only scrape one gush. clean_db Doesn't do anything..
from opentaba-server.
Related Issues (20)
- more improvements to rss feed and fb and twitter pages HOT 4
- Fab deployment HOT 3
- remove atom_feed_city ? HOT 10
- move caching helper methods to a different file HOT 1
- error: Unknown subcommand: remove HOT 5
- rename fab tasks HOT 1
- create_site breaking HOT 2
- when creating a client, set the subdomain CNAME via namecheap API
- all-heroku servers HOT 1
- DRY recents function HOT 1
- update DEPLOYMENT.md HOT 1
- error on fab create_server HOT 2
- can we remove the display name parameter from create_server? HOT 2
- add support for MongoLab
- what's the difference between fab refresh_db and renew_db? HOT 1
- Broken likns on Yeruham site HOT 1
- Mavat scraping and links don't work HOT 3
- broken plans links HOT 6
- Feeds are missing muni.display HOT 2
- connect re:dash
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opentaba-server.