How do you make a site scrapeable?

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
asphinx Offline
Team Arcade
Posts: 238
Joined: Nov 2008
Location: Finland
Post: #11
Excellent! I just downloaded the 0.3, going to have a look if this fits my purpose good enough for it to be something to build on/learn from! Big Grin
find quote
asphinx Offline
Team Arcade
Posts: 238
Joined: Nov 2008
Location: Finland
Post: #12
Checked the tvdb framework, after my initial reaction of "what the hell" had settled, I started snooping around. But unfortunately as of now, I am nowhere near grasping the structural layout and inner workings that is thetvdb 0.3.

But I have been working on a prototype that might just do what's necessary anyway. I do however have a question (as I know next to nothing about scraping xml)

If say, an xml data container, contains the following php

Code:
<?php echo date (”Y-m-j h:i:s A (T)”, getlastmod()); ?>

does the scraper only read the data (as is) or is it possible to get the actual result of the echo instead, in this case the last modified date?
find quote
spiff Offline
Grumpy Bastard Developer
Posts: 12,234
Joined: Nov 2003
Reputation: 82
Post: #13
php is server side..

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
asphinx Offline
Team Arcade
Posts: 238
Joined: Nov 2008
Location: Finland
Post: #14
uuuh.. yes. I know that much. Doesn't really answer my question though, or I'm too dumb to realize that it does. But I am going to assume that the answer is no, and try to find an alternative solution. Thank you for the reply though. Smile
find quote
szsori Offline
TheTVDB.com Admin
Posts: 663
Joined: Aug 2006
Reputation: 1
Location: Milwaukee, WI
Post: #15
asphinx Wrote:Checked the tvdb framework, after my initial reaction of "what the hell" had settled, I started snooping around. But unfortunately as of now, I am nowhere near grasping the structural layout and inner workings that is thetvdb 0.3.

But I have been working on a prototype that might just do what's necessary anyway. I do however have a question (as I know next to nothing about scraping xml)

If say, an xml data container, contains the following php

Code:
<?php echo date (”Y-m-j h:i:s A (T)”, getlastmod()); ?>

does the scraper only read the data (as is) or is it possible to get the actual result of the echo instead, in this case the last modified date?

0.3 is REALLY old. Sorry about that. We're in the middle of completely overhauling our database and moving it to Postgres (most likely) instead of MySQL, which will make most of the SQL exist only in stored procedures on the database. It should really simplify things.

You missed the point that spiff was making. That PHP code you see will get turned into a date on the server and returned. Client side users and applications won't see any of the PHP code itself.

I'd be happy to give you a bit of guidance for your project... just send me a PM. The main thing is that you'll really need a grasp of PHP and SQL (mysql or Postgres). Also keep in mind that once XBMC and Media Portal hit your site, you're looking at a TON of bandwidth and CPU usage so you'll really need a dedicated host when that time comes (instead of a shared host, which is what many website hosting companies provide).

Contribute to TheTVDB.com - The Online TV Database
find quote
asphinx Offline
Team Arcade
Posts: 238
Joined: Nov 2008
Location: Finland
Post: #16
Ooh, now I get it. Server side being that no, the user only sees the date, not the php code that executes it. I discussed this with a friend as well (who knows php & sql, unlike me). He was also keen to emphasize the need for a dedicated host if I ever got this up n' running.

As of right now I am however finding myself lacking in time/resources to fully commit to this, which is a shame because I (personally) still think there would be a good need for a game database that xbmc could scrape (which is why I asked how to make something scrape able with ease)

I might still take you up that offer sometime in the future though. Smile
find quote
Post Reply