17
Dec
2014

Scraping Images from a Website in PHP

While working through some SEO enhancements for Homebräu, like building Sitemap with images, I needed to find a way to gather all the images on a page and return them nicely. I also needed to use this logic in a couple places, so it needed to be flexible.

Here is tutorial for creating a script that will scrape a page or HTML string for images, and return all of their src attributes. Let's look at the PHP first...

Continue Reading...

Tags:

Comments:

View (1) Comments Post a Comment
  • Replying to Adam Konieska on Scraping a Website for Images with PHP to build an Images sitemap.xml







  • sunny techo
    Sunny Techo
    Saturday, July 9th 2016 at 1:51 AM

    There is correction in function "scrapeImages"
    because its always return empty array.
    In this line,
    array_push($img,$image->getAttribute('src'));
    Improve
    array_push($imgArray,$image->getAttribute('src'));

    • Replying to Sunny Techo







3
Dec
2014

Gravitar Support - Built Into Homebräu

posted Wednesday, December 3rd 2014 at 8:06 AM by

Gravitar Image Example

Comments are an important part of blogging, and after recently improving spam controls and filtering, we've got something for the human posters this time — support for Gravitar Icons.

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Gravitar Support - Built Into Homebräu







25
Nov
2014

Improved Image Sitemap Support for Homebräu CMS

posted Tuesday, November 25th 2014 at 8:09 AM by

Hessen Haus, Des Moines, IA

As Homebräu continues to evolve it continues to add SEO features. I covered how to use a Sitemap to improve your SEO, and how I automated Sitemaps in Homebräu. Well, if an image is worth a thousand words, the next step is to include fully automated image Sitemaps in Homeäu.

The process is simple, and doesn't require any action from the user. Homebräu does it all behind the scenes by...

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Improved Image Sitemap Support for Homebräu CMS







10
Nov
2014

Homebräu - Now With Improved SEO Support

posted Monday, November 10th 2014 at 8:00 AM by

Homebrau Now Has Improved SEO Support

With more enhancements, Homebräu is taking SEO optimization to the next level. Included in this release are updates that allow for more SEO fine tuning by incorporating the HTML5 Microdata Spec, as well as automating the process of inserting keywords, descriptions, etc.

Here's how it all works, and how Homebräu can help improve your search ranking...

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Homebräu - Now With Improved SEO Support







6
Nov
2014

Homebräu - New Archive Support

posted Thursday, November 6th 2014 at 10:03 AM by

Here's a little something for Throwback Thursday. Its a short film I made for college nearly 10 years ago.

I'm still really digging it today, but what does it have to do with Homebräu?

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Homebräu - New Archive Support







16
Oct
2014

Automate Your Website Build With Grunt

posted Thursday, October 16th 2014 at 8:16 AM by

Grunt Logo

I've been doing a lot of website work lately, lots of which includes repetitive tasks like minifying CSS and Javascript assets after making changes. Which is an inefficient use of time and can lead to mistakes. And I'm only one guy, having a team of developers all trying to manage the same repetitive tasks and get a consistent, high quality product gets to be a headache unless you use some kind of automation.

Here's how to automate those tasks using Grunt...

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Automate Your Website Build With Grunt







6
Oct
2014

Rise of the Machines! A Spam Story

posted Monday, October 6th 2014 at 8:14 AM by

Terminator 2: Spam Day
The Skynet Funding Bill is passed. The system goes on-line August 4th, 1997. Human decisions are removed from strategic defense. Skynet begins to learn at a geometric rate. It becomes self-aware at 2:14 a.m. Eastern time, August 29th. In a panic, they try to pull the plug.

It was bound to happen sooner or later, spam bots hitting the comment forms over and over! I was getting around 2,000 comment submissions per day from these friendly robots bent on world domination.

I could reduce it with one of those clunky off the shelf captchas, but lets face it, they aren't without their problems either, especially...

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Rise of the Machines! A Spam Story







8
Sep
2014

Homebräu - Announcing Improved Caching

posted Monday, September 8th 2014 at 11:21 PM by

Cache Diagram

I'm very excited to announce improvements to caching in Homebräu CMS. After combing through pages and the core CMS design, I identified areas that frequently performed calculations and/or database queries. Pages like that used to be generated upon request.

Not anymore....

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Homebräu - Announcing Improved Caching







31
Aug
2014

Homebräu - Now With RSS Support

posted Sunday, August 31st 2014 at 1:04 AM by

Subscribe with RSS

In the interests of continually improving Homebräu, I'm proud to announce support for an RSS feed. Nothing fancy, something other content management systems have offered for years, including my own ASP system built back in 2003. So whats the big deal?

Continue Reading...

Tags:

Comments:

View (0) Comments Post a Comment
  • Replying to Adam Konieska on Homebräu - Now With RSS Support







11
Aug
2014

Introducing Homebräu - The CMS with the German Sounding Name

posted Monday, August 11th 2014 at 10:48 PM by

World, meet Homebräu. Homebräu, meet the world.

echo('Hello world!');

Heh, I'm sure you two are going to get along great.

Homebräu CMS

My website is powered entirely by Homebräu. It allows me to create and manage entries, pages, and files in a simple way.

Which is pretty awesome.

Continue Reading...

Tags:

Comments:

View (5) Comments Post a Comment
  • Replying to Adam Konieska on Introducing Homebräu - The CMS with the German Sounding Name







  • ben myhre
    Ben Myhre
    Tuesday, August 12th 2014 at 6:31 AM

    Very cool, Adam!

    • Replying to Ben Myhre







  • tim mcmichael
    Tim McMichael
    Tuesday, August 12th 2014 at 10:14 AM

    Very sweet Adam!

    • Replying to Tim McMichael







  • Adam Konieska
    AK
    Tuesday, August 12th 2014 at 2:25 PM

    Thanks guys!

    • Replying to AK







  • toops
    Toops
    Wednesday, August 13th 2014 at 5:54 PM

    Good for you for taking on the challenge and fun in doing it yourself! You showed the first few lines of code above in what looks like vim. Did you code the whole thing in a command line editor or a Win-based editor? I'm impressed regardless, but If the former, that'd be even more epic... and also explain why it took so long, lol.

    • Replying to Toops







    • Adam Konieska
      AK
      Wednesday, August 13th 2014 at 8:39 PM

      Nah, I mostly used Sublime Text, which is an awesome editor.

      • Replying to AK