It is possible to copy text from some websites and paste it in notepad? Topic is solved
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
It is possible to copy text from some websites and paste it in notepad?
I want copy some specific text from 3-4 websites, the problem is the text always changes, but it always has the same word on each line so that could be used as a guide or something?
Re: It is possible to copy text from some websites and paste it in notepad?
it is but without more info I cant really help any further look into comobj
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
Re: It is possible to copy text from some websites and paste it in notepad?
I'm sorry if I didn't explain it very well, could you tell me what info do you need?donovv wrote:it is but without more info I cant really help any further look into comobj
Re: It is possible to copy text from some websites and paste it in notepad?
ill see if i can make an example script to show you but without seeing the webpage source i couldn't ensure it will work in the same way
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
Re: It is possible to copy text from some websites and paste it in notepad?
https://pastebin.com/archivedonovv wrote:ill see if i can make an example script to show you but without seeing the webpage source i couldn't ensure it will work in the same way
That's the website, I want to check every hour if one of the texts there ends with the word "WTP" and if it does just copy the name of the file and the link. I don't know if this is too hard to do, but if you don't have the time to make an example just tell me what I should learn to do this.
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
Re: It is possible to copy text from some websites and paste it in notepad?
Could you explain me how?Cuadrix wrote:Yes.
Re: It is possible to copy text from some websites and paste it in notepad?
im working on something for you right now give me a few hours i'm working on it during my free time at work
Re: It is possible to copy text from some websites and paste it in notepad?
https://autohotkey.com/docs/frame.htm#c ... ToFile.htm
https://autohotkey.com/docs/misc/RegEx-QuickRef.htm
https://autohotkey.com/docs/misc/RegEx-QuickRef.htm
github>g_IntelliSense + next improvements + forum
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
ahk..org>onlineAHKprettyfy, ahk..com>Refactoring
ahk..com>newposts Unanswrd myposts, Donations are appreciated if I could help you
WARNING: copy your posts/messages before hitting Submit as you may lose them due to CAPTCHA
Re: It is possible to copy text from some websites and paste it in notepad?
where would the WTP be? is it under the syntax line?Yolomangolo wrote:Could you explain me how?
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
Re: It is possible to copy text from some websites and paste it in notepad?
WTP is always going to be in the title along with some numbers. An example would be something like 850430WTP. Since the numbers always change WTP would be only way to 'find' the file (I think?).donovv wrote:Where would the WTP be? is it under the syntax line?
Re: It is possible to copy text from some websites and paste it in notepad? Topic is solved
Code: Select all
#persistent
#singleinstance force
settimer,sub1,3600000
sub1:
urldownloadtofile,https://pastebin.com/archive,downl.txt
loop, read, downl.txt
{
regexmatch(a_loopreadline,"<td>.+<\/td>",z)
if z !=
{
regexmatch(z,"i).*wtp.*",x)
if x !=
fileappend,%x%`n,test.txt
}
}
filedelete, downl.txt
return
return
also i got kinda lazy so thats just gonna give you
<td><img src="/i/t.gif" class="i_p0" alt="" /><a href="/sPycERgn">Untitled</a></td>
the title will be where the untitled is the link is going to be pastebin.com/sPycERgn changed the colored part to what it is for your links ill work on it more when i get home from work
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
Re: It is possible to copy text from some websites and paste it in notepad?
It worked but I changed the milliseconds from 3600000 to 1 for testing and got banned for a few hours for suspicious activity, lol. While the temporary ban gets removed I was trying to test this script on other websites changing some things like WTP and the link, but it doesn't work. A random page for this example would be https://www.reddit.com/r/EggLeague/ this is the code I used, but i's not working. I am trying to do the same thing with WTP but in this case it's with the first post.donovv wrote:semi testedCode: Select all
#persistent #singleinstance force settimer,sub1,3600000 sub1: urldownloadtofile,https://pastebin.com/archive,downl.txt loop, read, downl.txt { regexmatch(a_loopreadline,"<td>.+<\/td>",z) if z != { regexmatch(z,"i).*wtp.*",x) if x != fileappend,%x%`n,test.txt } } filedelete, downl.txt return return
also i got kinda lazy so thats just gonna give you<td><img src="/i/t.gif" class="i_p0" alt="" /><a href="/sPycERgn">Untitled</a></td>
the title will be where the untitled is the link is going to be pastebin.com/sPycERgn changed the colored part to what it is for your links ill work on it more when i get home from work
Code: Select all
#persistent
#singleinstance force
settimer,sub1,10000
sub1:
urldownloadtofile,https://www.reddit.com/r/EggLeague/
loop, read, downl.txt
{
regexmatch(a_loopreadline,"<td>.+<\/td>",z)
if z !=
{
regexmatch(z,"i).*34563463.*",x)
if x !=
fileappend,%x%`n,test.txt
}
}
filedelete, downl.txt
return
return
Re: It is possible to copy text from some websites and paste it in notepad?
Reddit uses a different type of layout I’ll have to look when I get home but it won’t be for a few hours
-
- Posts: 7
- Joined: 04 Apr 2018, 10:04
Re: It is possible to copy text from some websites and paste it in notepad?
Yeah sure, no problem. It's not necessary, I don't really need it for reddit, I just want to understand how it works.Dono wrote:Reddit uses a different type of layout I’ll have to look when I get home but it won’t be for a few hours
Re: It is possible to copy text from some websites and paste it in notepad?
so ya im home now took a look at reddits source and im not really ready for that challenge right now xD feel free to pm me if you have any questions though
Who is online
Users browsing this forum: No registered users and 272 guests