Recent

Author Topic: HTML files get values  (Read 7320 times)

Handoko

  • Hero Member
  • *****
  • Posts: 3653
  • My goal: build my own game engine using Lazarus
Re: HTML files get values
« Reply #120 on: June 26, 2020, 10:08:33 am »
That's look good.
Currently I'm doing research and writing similar program as yours.

I downloaded your program. It's not open source.  :'(

Anyway, thank you for sharing it.

rvk

  • Hero Member
  • *****
  • Posts: 4227
Re: HTML files get values
« Reply #121 on: June 26, 2020, 10:55:06 am »
Looks good.

It's not open source.  :'(
Most of the code you can find in my latest example in this topic.
https://forum.lazarus.freepascal.org/index.php/topic,49927.msg365816.html#msg365816

Handoko

  • Hero Member
  • *****
  • Posts: 3653
  • My goal: build my own game engine using Lazarus
Re: HTML files get values
« Reply #122 on: June 26, 2020, 11:12:45 am »
Most of the code you can find in my latest example in this topic.
https://forum.lazarus.freepascal.org/index.php/topic,49927.msg365816.html#msg365816

Thank you very much.
It will greatly reduce my research time.

alaa123456789

  • Jr. Member
  • **
  • Posts: 80
Re: HTML files get values
« Reply #123 on: June 26, 2020, 12:11:54 pm »
Looks good.

It's not open source.  :'(
it is still under development , it take long time to download the book , and i am searching for better way , at the end i will make it open source for all , i just put it to get the comments from you guys about its performance

thanks
« Last Edit: June 26, 2020, 12:13:46 pm by alaa123456789 »

alaa123456789

  • Jr. Member
  • **
  • Posts: 80
Re: HTML files get values
« Reply #124 on: June 26, 2020, 12:17:32 pm »
That's look good.
Currently I'm doing research and writing similar program as yours.

I downloaded your program. It's not open source.  :'(

Anyway, thank you for sharing it.
please try it and give your comments , i still feel it is not perfect , i will share the code soon

thanks

Handoko

  • Hero Member
  • *****
  • Posts: 3653
  • My goal: build my own game engine using Lazarus
Re: HTML files get values
« Reply #125 on: June 27, 2020, 06:07:40 pm »
please try it and give your comments , i still feel it is not perfect

Sorry, I can't.

I downloaded the binary and run it on my Linux's Wine. Unfortunately I got SSL error. I remember recent versions of Ubuntu have SSL problem with binaries compiled using Lazarus recent versions.

And, I've already moved away from Windows for a very long time. I still need to use Windows, that's why many years ago I purchased a WinXP license for testing purpose. Your 64-bit binary can't run on WinXP 32-bit.

It is okay if your software is not perfect. No one can write perfect software. I heard the first BASIC written by Bill Gates and his friend was very buggy.
« Last Edit: June 27, 2020, 06:26:02 pm by Handoko »

alaa123456789

  • Jr. Member
  • **
  • Posts: 80
Re: HTML files get values
« Reply #126 on: July 15, 2020, 08:15:32 pm »
hey guys
i am trying using lazarus synapse 40.1 in my code to load photo
here is the code
Code: Pascal  [Select][+][-]
  1.  
  2. uses
  3. httpsend
  4.  
  5.  response := TMemoryStream.Create;
  6.  try
  7.     if HttpGetBinary('http://feelgrafix.com/data_images/out/1/737246-apple-wallpaper.jpg', response) then
  8.     begin
  9.       response.Seek(0,soFromBeginning);
  10.       Image1.Picture.LoadFromStream(response);
  11.     end;
  12.  finally
  13.    response.Free;            
  14. end;
  15.  

 but it is not loading ( i added libeay32.dll,ssleay32.dll) in application folder
first time worked fine , then it is stopped
please help
Quote
Messages, Hints: 14
Note: Duplicate unit "synsock" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\synsock.ppu"
Note: Duplicate unit "synsock" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\synsock.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\synsock.pas"
Note: Duplicate unit "synautil" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\synautil.ppu"
Note: Duplicate unit "synautil" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\synautil.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\synautil.pas"
Note: Duplicate unit "synaip" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\synaip.ppu"
Note: Duplicate unit "synaip" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\synaip.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\synaip.pas"
Note: Duplicate unit "synafpc" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\synafpc.ppu"
Note: Duplicate unit "synafpc" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\synafpc.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\synafpc.pas"
Note: Duplicate unit "synacode" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\synacode.ppu"
Note: Duplicate unit "synacode" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\synacode.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\synacode.pas"
Note: Duplicate unit "httpsend" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\httpsend.ppu"
Note: Duplicate unit "httpsend" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\httpsend.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\httpsend.pas"
Note: Duplicate unit "blcksock" in "photosexplorer", orphaned ppu "C:\Users\alaa-laptop\Desktop\Desktop Files\lazarus classes\videos\flickr photos\lib\x86_64-win64\blcksock.ppu"
Note: Duplicate unit "blcksock" in "laz_synapse 40.1", ppu="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\lib\x86_64-win64\blcksock.ppu", source="C:\Users\alaa-laptop\AppData\Local\lazarus\onlinepackagemanager\packages\synapse40.1\blcksock.pas"
Compile Project, Mode: Default, Target: photosexplorer.exe: Success
thanks
« Last Edit: July 15, 2020, 08:50:10 pm by alaa123456789 »

rvk

  • Hero Member
  • *****
  • Posts: 4227
Re: HTML files get values
« Reply #127 on: July 15, 2020, 09:43:35 pm »
hey guys
i am trying using lazarus synapse 40.1 in my code to load photo
...
 but it is not loading ( i added libeay32.dll,ssleay32.dll) in application folder
first time worked fine , then it is stopped
First of all, what DOES it give you? Does it give an error message? If so, why didn't you mention that??????

Second... openssl library should be needed because it's not a HTTPS address.

Third... have you tried this link in a browser?

Fourth... Put a Showmessage(pchar(response.Memory)); after the HttpGetBinary
You'll see what you actually get from the server.
Does that look like data from an image?

And finally... the hints you get are not fatal. It means you have a duplicate path to synapse somewhere in your project.

alaa123456789

  • Jr. Member
  • **
  • Posts: 80
Re: HTML files get values
« Reply #128 on: July 17, 2020, 06:48:26 am »
hi RVK
i added ssl_openssl to uses and it worked 

thanks
Alaa
« Last Edit: July 17, 2020, 07:39:13 am by alaa123456789 »

alaa123456789

  • Jr. Member
  • **
  • Posts: 80
Re: HTML files get values
« Reply #129 on: July 17, 2020, 06:29:36 pm »
here another example for web scraping

https://www.youtube.com/watch?v=hciB_kPj3Sc

enjoy

 

TinyPortal © 2005-2018