Help with Lua Web Browser

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Help with Lua Web Browser

Post by be2003 »

I have been making a lua web browser based off the wlan test. I have gotten far, i just need help making an html parse function. Don't know where to start. I was thinking along the lines of using the string.gsub for most of the parsing. My goal is a browser like lynx for *nix. Simple and fast.
- be2003
blog
User avatar
TeamOverload
Posts: 41
Joined: Thu Apr 20, 2006 10:31 pm
Location: CT

Post by TeamOverload »

Sounds good, but I don't know if Lua can handle a very full featured web browser. It will be interesting to see, and I dont want to discourage you, so I wish you luck
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

well so far i have simple url input and page history. I have already viewed www.psp3d.com with it, text only and with no links :(

thinking of writing a lua or lrx library, because it has like 300 lines, most for functions.
I have planned a rewrite of my code for easy implementing of my functions. eg.

Code: Select all

 gotoURL(url as a string)
returns the source as a string... wow lots of work todo.
- be2003
blog
User avatar
TeamOverload
Posts: 41
Joined: Thu Apr 20, 2006 10:31 pm
Location: CT

Post by TeamOverload »

Well i certianly will be interested in this. If you need any help or tester send me a PM, or message me on AIM, or send me an email or something
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

i will post a screenshot soon.

trying to get the rewrite done first
- be2003
blog
glynnder
Posts: 35
Joined: Sun Sep 04, 2005 9:54 pm

Post by glynnder »

be 2003, i am interested in this and have been looking at making a web browser in lua for a while, i have made a few propgrams in a few languages, and i would like to work with you on this.
Interested?
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

i might need help eventually.
these are a screenshot and the source as html

just right click on the link and save as index.lua. it is my first attempt. i am working on the rewrite now.

Image

sorry about the crude html renaming, i need better hosting
- be2003
blog
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

oh ya try to stick with just www.something.com
not
something.com/someelse/index.php

controls:
when it chooses a connection and displays "Done!" hit square to load google (its only 2 lines, the browser print letter by letter, be patient, it is more like a news reader right now)
when google is done hit triangle just like the 2.0 browser
the url on the bottom is the current location, the one on the top is the input
hit circle to clear it and use up/down to change letters, x to input square to load
- be2003
blog
User avatar
TeamOverload
Posts: 41
Joined: Thu Apr 20, 2006 10:31 pm
Location: CT

Post by TeamOverload »

what version luaplayer is it for? I tried it on 0.16 on my 2.60 and i got the no script file found error
glynnder
Posts: 35
Joined: Sun Sep 04, 2005 9:54 pm

Post by glynnder »

ARGH - my f=ing PC

~Do you mind if i develop this by myself then?

I'll say based on excellent work by be2003?

this needs a lot of work
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

the error you got means that your player cannot interpret a command used, do 2.6s support wifi?
i will do research on the issue
- be2003
blog
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

does your luaplayer support font functions and does the lua wlan test work?
- be2003
blog
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

go ahead and work off of it, but let me remind you, the rewrite will contain a much better parsing function, and who knows how to compile .lrx's?
- be2003
blog
User avatar
TeamOverload
Posts: 41
Joined: Thu Apr 20, 2006 10:31 pm
Location: CT

Post by TeamOverload »

glynnder wrote:ARGH - my f=ing PC

~Do you mind if i develop this by myself then?

I'll say based on excellent work by be2003?

this needs a lot of work
Lol I just started my own browser(not really based off this, but I may use some parts of the code, if thats alright and the author gives consent), however I am making two versions Basic(in Lua) and Ultimate(Using PSPSDK)
glynnder
Posts: 35
Joined: Sun Sep 04, 2005 9:54 pm

Post by glynnder »

cool, good luck.
i will wait till the rwrite cos i am working on luaMainframe ATM
which is basically lowser with some addons, e.g 'R' loads your fave homebrew!
be2003
Posts: 144
Joined: Thu Apr 20, 2006 2:46 pm

Post by be2003 »

i took a break, gsub was getting to my head. harvest moon summer harvest test for lua almost done.
- be2003
blog
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

I wouldn't give up on this project per se, but must point out that the links2 port in pspradio is awesome. :)
Danny769
Posts: 55
Joined: Wed Feb 01, 2006 12:29 pm

Post by Danny769 »

If you can get the lua one going using th memstick as ram you will supass links2.

Keep it up.

But links2 may be able to have flask if the flash program can be ported.
In my real oppion PSP~Radio is cripling Link2 and visversa
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Danny769 wrote:If you can get the lua one going using th memstick as ram you will supass links2.

Keep it up.

But links2 may be able to have flask if the flash program can be ported.
In my real oppion PSP~Radio is cripling Link2 and visversa
Yeah, but there'll be a standalone links2 soon enough, obviously.
Danny769
Posts: 55
Joined: Wed Feb 01, 2006 12:29 pm

Post by Danny769 »

Raf wont give me the sorce.
adio is killing the thing
Arwin
Posts: 426
Joined: Tue Jul 12, 2005 7:00 pm

Post by Arwin »

Danny769 wrote:Raf wont give me the sorce.
adio is killing the thing
Well, first of all you don't have to turn the radio on while browsing, and second of all the source is publicly available.

If you can't discover where, you're probably not smart enough for working on it anyway. :p
Post Reply