Search

Main Menu

Login
Username:

Password:

Remember me?
Anonymous

Lost Password?

Register now!

Samurize Forums -> Lectio


Pages: (4) [1] 2 3 ... Last »  ( Go to first unread post ) Reply to this topicStart new topic

> Lectio, School Shedule in Samurize
Dunno
  Posted: Feb 6 2007, 10:41 AM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline





My school uses this home page, Lectio.dk, where you can see your timetable. Our timetables changes a lot so I use it every day. It would be neat if I could see my shedule on my desktop without having to open the internet.

The exact link to where my shedule is is: http://www.lectio.dk/lectio/39/SkemaGenera...v&id=1368448281
(the link doesn't change)

I only need the schedule but it would be very nice if I was able to get the "Vis skema for uge: Forrige Nęste" (a function that makes it possible to see the shedule for the next weeks or the last weeks) pinned to my desktop also, so I could change between the weeks. That would be just perfect.

I thought of using PageScraper but I can't really figure it out since I'm only used to use PageScraper for pictures.

So, help, help help! smil43c70fd68db1d.gif

/Patricia
PM
Top
Spewed
Posted: Feb 6 2007, 01:10 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



I had a quick look into this. I recommend you to use MiniBrowser instead of PageScraper. With MiniBrowser you can show a whole webpage or part of it, in this case limit the MiniBrowser window so that it will show only the lecture table.

With PageScraper, it's almost possible to scrape all the information needed from that page but the empty table cells (those that doesn't contain any lectures) are causing issues since they change dynamically all over the table depending on the week and have completely different HTML style definitions (prefixes) than the actual cells that include a lecture. I find it impossible to get those spaces to correct positions in a config because of that.

Give MiniBrowser a try. smil43e6c401b9177.gif
PMEmail PosterMSN
Top
Dunno
Posted: Feb 6 2007, 01:40 PM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline



Thanks for the reply.

I have given MiniBrowser a try, but it fetches the whole side, so I have to scroll down to see the whole shedule. How do I prevent that?

Also, isn't there a way to change the colors or design of the shedule, since it doesn't really fit with my white/black/pink-theme I'm currently using smil3dbd4e29bbcc7.gif
PM
Top
Spewed
Posted: Feb 6 2007, 05:02 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Here's a kinda hack solution for what you're after using PageScraper & MiniBrowser combination. smil43e6c401b9177.gif

PageScraper scrapes the entire table and saves it into a file (../plugins/PageScraper/lectio.html) and MiniBrowser reads that file back.

You can configure the colors using PageScraper's replace options. Take a look to the PageScraper configuration of the attached example config to find out how to use it. I changed the color of the "modul column" to pink as an example.

Hope that helps. smil43c71019219b4.gif

Attached File ( Number of downloads: 347 )
Attached File  Lectio_sample.ini
PMEmail PosterMSN
Top
Dunno
Posted: Feb 6 2007, 06:16 PM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline



I see the logic, but I can't get it to work smil3dbd4d75edb5e.gif
I can't see the attached config. All I see is a white box. The problem is (I think) that I don't know how to configure PageScraper. I can only get the white box or a lot of wierd text.
PM
Top
Spewed
Posted: Feb 6 2007, 06:22 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Sorry, I forgot to mention you need to change the path to lectio.html temp file. Open the config in editor, select the meter I've created, go to Display tab , click Configure button and browse to lectio.html (Samurize root dir\plugins\PageScraper\lectio.html).

If it still doesn't work, make sure you have the latest plugin builds of PageScraper and MiniBrowser.
PMEmail PosterMSN
Top
Dunno
Posted: Feb 6 2007, 06:48 PM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline



I didn't have the latest version of PageScraper - Now I do and it works perfectly. Thanks a lot for your help smil457f47f13e0c7.gif
PM
Top
Dunno
Posted: Feb 6 2007, 07:09 PM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline



Heh.. Is there a way to make it smaller?
PM
Top
Spewed
Posted: Feb 7 2007, 11:46 AM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



No probs. smil43e6c401b9177.gif

QUOTE
Heh.. Is there a way to make it smaller?
Sure, you just have to save the CSS stylesheet file of the site onto your harddrive, change the stylesheet path (from advanced options of PageScraper) to point to that local stylesheet file and then edit the stylesheet to fit into your needs. Smaller the font size, decrease the table size etc.
PMEmail PosterMSN
Top
Dunno
Posted: Feb 7 2007, 05:08 PM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline



Is the CSS Styleshed File the one located at http://www.lectio.dk/lectio/lectio.css ?
I'm not really familiar with the CSS system.
I can't really get it to work.
Help!
PM
Top
Spewed
Posted: Feb 7 2007, 07:14 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Yes, save it as lectio.css for example to C:\, then open the sample config I've sent to you in config editor, go to configure PageScraper, click "Advanced Options" and change the "http://www.lectio.dk/lectio/lectio.css" link to "C:\lectio.css" of the prefix box and save.

Next open the local lectio.css in a text editor like Notepad or Wordpad and start changing the colors as you like. Testing what affects to what is your friend here if you're not sure about what to change. smil3dbd4e398ff7b.gif
PMEmail PosterMSN
Top
Dunno
Posted: Feb 7 2007, 08:31 PM
Quote Post
Shadow
*



Group: Member
Joined: Jun 26 2006
Posts: 7
Offline



Works perfectly now smil3dbd4d4e4c4f2.gif Thanks a lot!
PM
Top
Spewed
Posted: Feb 8 2007, 01:09 PM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



No probs. smil3dbd4d4e4c4f2.gif
PMEmail PosterMSN
Top
uziq
Posted: Mar 5 2007, 04:47 PM
Quote Post
The Pluginator
*****



Group: Admin
Joined: Sep 25 2003
Posts: 2,599
Offline



QUOTE (Spewed @ Feb 6 2007, 05:22 PM)
Sorry, I forgot to mention you need to change the path to lectio.html temp file. Open the config in editor, select the meter I've created, go to Display tab , click Configure button and browse to lectio.html (Samurize root dir\plugins\PageScraper\lectio.html).

For the record, all the plugins in the PluginPak automatically substitute the Samurize path (along with other common system paths). If you open the config in a text editor, you should see something like %SAMDIR%\plugins\PageScraper\lectio.html. So, there's no extra configuration required when moving a config to a different computer. smil3dbd4d6422f04.gif
PMEmail PosterMSN
Top
Spewed
Posted: Mar 6 2007, 10:00 AM
Quote Post
Our Blind Friend
*****



Group: Moderating Crew
Joined: Jan 12 2006
Posts: 1,555
Offline



Clever man. smil3dbd4e398ff7b.gif
PMEmail PosterMSN
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:

Topic Options Pages: (4) [1] 2 3 ... Last » Reply to this topicStart new topic

 

Come On, Get Samurized!