Giter Site home page Giter Site logo

museums's Introduction

museums's People

Contributors

dracos avatar joeweiss avatar simonw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

museums's Issues

Normalize countries and make them searchable

There is an osm_country column at the moment but it's inconsistent:

browse__museums__59_rows_and_heroku__apps__31_rows

It's included in the FTS configuration so ideally searching for "japan" would return all museums in Japan - but that doesn't actually work.

Solution: populate a new country column derived from the osm_country_code column, which appears to be more reliable.

Misalignment museum location - moved

The misalignment museum moved to out in front of Chase Stadium. I'm not sure how long their deal to stay there lasts. Might be nice to email them to ask, and ask for updates if/when the move again.

address: 201 Guerrero Street, San Francisco, CA 94103

Implement search

Rogue <div style="white-space: normal"> in feeds

It looks like a change to Datasette has caused datasette-atom to start outputting feed items like this:

https://www.niche-museums.com/browse/feed.atom

<content type="html">
&lt;img src="https://niche-museums.imgix.net/hearst-castle.jpeg?w=800&amp;amp;h=400&amp;amp;fit=crop&amp;amp;auto=compress"&gt;
&amp;lt;div style="white-space: normal"&amp;gt;&lt;p&gt;In 1919 press baron William Randolph Hearst commissioned ...

That &amp;lt;div style="white-space: normal"&amp;gt; should not be there!

JSON serializable in annotate_timestamps

Caused by #7.

https://circleci.com/gh/simonw/museums/123

Traceback (most recent call last):
  File "annotate_timestamps.py", line 39, in <module>
    for id in current
  File "annotate_timestamps.py", line 40, in <listcomp>
    if json.dumps(current[id], sort_keys=True)
  File "/usr/local/lib/python3.6/json/__init__.py", line 238, in dumps
    **kw).encode(obj)
  File "/usr/local/lib/python3.6/json/encoder.py", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/usr/local/lib/python3.6/json/encoder.py", line 257, in iterencode
    return _iterencode(o, 0)
  File "/usr/local/lib/python3.6/json/encoder.py", line 180, in default
    o.__class__.__name__)
TypeError: Object of type 'date' is not JSON serializable

Figure out how to accept submissions

Originally I had intended to accept submissions, but over the past few weeks I've really enjoyed writing my own editorialized captions and using photos I've taken on the site (e.g. https://www.niche-museums.com/browse/museums/43)

But... now I'm getting offers of submissions! https://twitter.com/davidnunez/status/1199424444541751297 and https://twitter.com/brycem/status/1199415935263625216 for example.

I want both. I want to be able to keep my personal "museums I've been to" vibe going, but I also want to collect tips from other people (so when I'm traveling the "Use my location" button can show me places people have suggested).

Need to figure out the neatest way to combine tips from other people with my own personal notes on niche museums that I've visited and loved.

Add Google Analytics

I don't even have server logs at the moment. Would be nice to know if anyone is using it!

Show press articles on museum pages, if available

A few museums have press articles in the YAML file but these are not yet displayed on the site:

museums/museums.yaml

Lines 30 to 35 in 4e61f4a

press:
- url: https://roadtrippers.com/magazine/bigfoot-discovery-museum-santa-cruz/
title: "Searching for Bigfoot: If the elusive creature exists, he’s probably hiding deep in the Santa Cruz Mountains"
publication: Explore Magazine
author: Shoshi Parks
date: 20-06-2019

Twitter cards and Facebook og metadata for listings

<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@publisher_handle">
<meta name="twitter:title" content="Page Title">
<meta name="twitter:description" content="{{ ">
<meta name="twitter:creator" content="@author_handle">
<-- Twitter Summary card images must be at least 120x120px -->
<meta name="twitter:image" content="http://www.example.com/image.jpg">

<!-- Open Graph data -->
<meta property="og:title" content="Title Here" />
<meta property="og:type" content="article" />
<meta property="og:url" content="http://www.example.com/" />
<meta property="og:image" content="http://example.com/image.jpg" />

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.