Comments (2)
I'm a bit confused by your example: if I go to newsdiffs.org and search for www.washingtonpost.com/local/montgomery-county-housing-application-moves-online/2015/08/20/05d93a2a-468f-11e5-846d-02792f854297_story.html
then I do find the article.
There are several possibilities for what the issue might be. For example:
- It probably doesn't realize that http:// and https:// go to the same site.
- It's possible that it caches the results; some pages have a 30 minute cache.
- Note that on /diff/x/y/long-url links, the long-url is just for human readability -- you can change it arbitrarily. So perhaps the link is different.
- Related to that, you seem to have a space between the http: and the // in your text.
You can also troubleshoot by looking at the database directly. Do something like
newsdiffs/website$ python manage.py shell
[...]
>>> from frontend.models import *
>>> Article.objects.get(url='http://sfgate.com/blah-blah')
to see if the article is in the database.
from newsdiffs.
Actually ... I somehow introduced the space in views.py
and that was the whole problem.
Now I'm embarrassed. But thank you!
from newsdiffs.
Related Issues (20)
- ImportError: Could not import settings 'website.settings' (Is it on sys.path?): No module named website.settings HOT 6
- politico scraper fails on "print.cfm"
- disambuguate URLs
- TypeError: sequence item 0: expected string or Unicode, NoneType found
- Heroku? HOT 3
- frontend/views.py REJECTING valid urls
- Docs fail to mention check on robots.txt
- NYT scraper no longer works HOT 3
- BBC scraper no longer works
- newsdiffs.org isn't served over HTTPS
- Add foxnews.com
- /browse takes 20-30sec to respond
- Add theguardian.com
- Adding header information in http requests to avoid 403 errors HOT 1
- Update for "2020" HOT 1
- Add Canadian news
- URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:727)>
- ModuleNotFoundError: No module named 'website'
- Update for NYT / User Agent change
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 newsdiffs.