Jump to content

[SOLVED] Read HTML Source code


Recommended Posts

Hello AutoIt Scriptwriters! 

I want to read https based site that it's address is: Soft98 (https://soft98.ir/)

I've tried with "_INetGetSource", "BinaryToString(InetRead)" and "InetRead" but none of them don't help me

 

How can i get this site html source code without opening IE Windows

 

Edited by Colduction
Link to comment
Share on other sites

What shows in the SciTE console when you run that from SciTE (uncompiled) ?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Please copy paste the console output.

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Paste the full content anyway!

I get this:

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\username\Documents\AutoMAT\tmp\t.au3" /UserParams    
+>09:26:01 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0   Keyboard:0000040C  OS:WIN_7/Service Pack 1  CPU:X64 OS:X64  Environment(Language:040C)  CodePage:65001  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\username\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\jc\AppData\Local\AutoIt v3\SciTE 
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3.exe "C:\Users\username\Documents\AutoMAT\tmp\t.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
<!doctype html>
<html lang="fa" dir="rtl">
<head>
<meta charset="utf-8">
<title>دانلود رایگان نرم افزار</title>
<meta name="description" content="دانلود رایگان نرم افزار،کرک و سریال نرم افزار،آنتی ویروس،فایروال،ویندوز 7،ویندوز 8.1،ویندوز 10،برنامه اندروید،اپلیکیشن اندروید،نرم افزار اندروید،نرم افزار مهندسی،برنامه نویسی،اندروید،ویندوز">

...

var dle_del_news   = 'حذف مطلب';
var dle_sub_agree  = 'آیا برای مشترک شدن به نظرات این خبر مطمئن هستید؟';
var allow_dle_delete_news   = false;

//-->
</script> <script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create','UA-20535270-2','auto');ga('send','pageview');</script> 
 </body></html>
+>09:26:02 AutoIt3.exe ended.rc:0
+>09:26:02 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.562

 

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • 2 weeks later...

Using XP, the Inet* funcs don't work anymore on some (on most) https sites, so a third party tool is needed
Try this

#include <AutoItConstants.au3>

Local $iPID = Run("curl -s -k https://soft98.ir/", "", @SW_HIDE, $STDOUT_CHILD)
ProcessWaitClose($iPID)
Local $output = StdoutRead($iPID)
ConsoleWrite($output)

 

Link to comment
Share on other sites

7 hours ago, mikell said:

Using XP, the Inet* funcs don't work anymore on some (on most) https sites, so a third party tool is needed
Try this

#include <AutoItConstants.au3>

Local $iPID = Run("curl -s -k https://soft98.ir/", "", @SW_HIDE, $STDOUT_CHILD)
ProcessWaitClose($iPID)
Local $output = StdoutRead($iPID)
ConsoleWrite($output)

 

Thanks bro, am already solved!

Link to comment
Share on other sites

3 hours ago, Colduction said:

Thanks bro, am already solved!

how did you solved it? you used mikell's post or in some other way?

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...