Show HN: Recipebook – scrape and parse food recipes on the web

README.md

This is a simple application for scraping and parsing food recipe data found on the web in hRecipe format, producing results in json.

This project was inspired by this answer to a query for an open database of recipes.

Add your favorite site by implementing a RecipeParser class with appropriate lxml etree definitions of the getIngredients(), getDirections(), getTags(), and getOtherRecipeLinks() methods.

Few sites implement hRecipe exactly, though, so study the site’s html source code to understand its structure. Also see how the current implementations for AllRecipes, Epicurious, FoodNetwork, and Williams Sonoma were written.

Pull requests are welcome!

Individual recipes

Import the class corresponding to the site you want, and use the recipe URL in its constructor.

Here’s an example to fetch and parse the Chocolate, Almond, and Banana Parfaits recipe from Epicurious:

>>> from epicurious import Epicurious
>>> recipe = Epicurious(“http://www.epicurious.com/recipes/food/views/Chocolate-Almond-and-Banana-Parfaits-357369”)

Use the save() method to create a file of the recipe in json object.

The file


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/nT5MjM-LBho/recipebook

Original article

GitHub Commits Reveal The Top ‘Weekend Programming’ Languages

An anonymous reader writes:
Google “developer advocate” Felipe Hoffa has determined the top “weekend programming languages,” those which see the biggest spike in commit activity on the weekends. “Clearly 2016 was a year dedicated to play with functional languages, up and coming paradigms, and scripting 3d worlds,” he writes, revealing that the top weekend programming languages are:
Rust, Glsl, D, Haskell, Common Lisp, Kicad, Emacs Lisp, Lua, Scheme, Julia, Elm, Eagle, Racket, Dart, Nsis, Clojure, Kotlin, Elixir, F#, Ocaml

Earlier this week another data scientist calculated ended up with an entirely different list by counting the frequency of each language’s tag in StackOverflow questions. But Hoffa’s analysis was performed using Google’s BigQuery web service, and he’s also compiled a list of 2016’s least popular weekend languages — the ones people seem to prefer using at the office rather than in their own free time.
Nginx, Matlab, Processing, Vue, Fortran, Visual Basic,


Original URL: http://rss.slashdot.org/~r/Slashdot/slashdot/~3/5-PH587uJcY/github-commits-reveal-the-top-weekend-programming-languages

Original article

Takeover.sh – Wipe and reinstall a running Linux system via SSH without reboot

README.md

A script to completely take over a running Linux system remotely, allowing you
to log into an in-memory rescue environment, unmount the original root
filesystem, and do anything you want, all without rebooting. Replace one distro
with another without touching a physical console.

WARNING WARNING WARNING WARNING

This is experimental. Do not use this script if you don’t understand exactly
how it works. Do not use this script on any system you care about. Do not use
this script on any system you expect to be up. Do not run this script unless
you can afford to get physical access to fix a botched takeover. If anything
goes wrong, your system will most likely panic.

That said, this script will not (itself) make any permanent changes to your
existing root filesystem (assuming you run it from a tmpfs), so as long as you
can remotely reboot your box using an out-of-band mechanism, you should be OK.
But don’t blame


Original URL: http://feedproxy.google.com/~r/feedsapi/BwPx/~3/Fz9LeV_M7Jk/takeover.sh

Original article

Proudly powered by WordPress | Theme: Baskerville 2 by Anders Noren.

Up ↑

%d bloggers like this: