extract forum members profile link from member page link

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
way1000
Posts: 90
Joined: 20 Jun 2016, 02:19

extract forum members profile link from member page link

Post by way1000 » 03 Jul 2022, 21:25

i have a list of links to the member pages in a text file

https://www.example.org/forum/members/list/?page=2
https://www.example.org/forum/members/list/?page=3
https://www.example.org/forum/members/list/?page=4
https://www.example.org/forum/members/list/?page=5
etc


there's 20 member names for every page and their names are clickable

their profile link is what i'm after

https://www.example.org/forum/members/username.9308/

i want from the page links to extract the last part of their profile address "username.9308" and save it as

username:9308

in a text file

i have a list of 1000 page links and there's 20000 usernames on them

it can work with regex

it will read the txt file i attached and save the usernames and numbers to a text file as a list.
Attachments
links to member pages.txt
(18.88 KiB) Downloaded 15 times

gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: extract forum members profile link from member page link

Post by gregster » 03 Jul 2022, 21:32

Is there a legitimate reason to do this?

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: extract forum members profile link from member page link

Post by BoBo » 03 Jul 2022, 22:29

@gregster - with forum-related posts like this… viewtopic.php?p=453331#p453331 :think:

gregster
Posts: 8916
Joined: 30 Sep 2013, 06:48

Re: extract forum members profile link from member page link

Post by gregster » 03 Jul 2022, 22:58

Not sure what that other request can tell me - besides, posts and profile pages are pretty different things (and this new request here is not even about a phpBB forum).
Imo, we wouldn't want this kind of automated crawling/scraping, done by random people, on our own forums - should we then support this when it's done on other forums?

way1000
Posts: 90
Joined: 20 Jun 2016, 02:19

Re: extract forum members profile link from member page link

Post by way1000 » 04 Jul 2022, 04:29

gregster wrote:
03 Jul 2022, 21:32
Is there a legitimate reason to do this?
i'm trying to make all of them friends and send them messages. i plan to create a database.

way1000
Posts: 90
Joined: 20 Jun 2016, 02:19

Re: extract forum members profile link from member page link

Post by way1000 » 04 Jul 2022, 04:32

gregster wrote:
03 Jul 2022, 22:58
Not sure what that other request can tell me - besides, posts and profile pages are pretty different things (and this new request here is not even about a phpBB forum).
Imo, we wouldn't want this kind of automated crawling/scraping, done by random people, on our own forums - should we then support this when it's done on other forums?
i have the member list already but i plan to add "Last seen" time and date, i will sort with recent online and add them as friends

way1000
Posts: 90
Joined: 20 Jun 2016, 02:19

Re: extract forum members profile link from member page link

Post by way1000 » 04 Jul 2022, 04:34

BoBo wrote:
03 Jul 2022, 22:29
@gregster - with forum-related posts like this… viewtopic.php?p=453331#p453331 :think:
this one was a project about adding posts of forum directly from the mysql database

User avatar
boiler
Posts: 16767
Joined: 21 Dec 2014, 02:44

Re: extract forum members profile link from member page link

Post by boiler » 04 Jul 2022, 05:15

way1000 wrote:
04 Jul 2022, 04:29
gregster wrote:
03 Jul 2022, 21:32
Is there a legitimate reason to do this?
i'm trying to make all of them friends and send them messages. i plan to create a database.
Spamming over 20,000 members of a forum doesn’t sound legitimate to me. If you did that on this site, it would earn you an instant perma-ban.

I think we have heard enough to lock this thread.

Locked

Return to “Ask for Help (v1)”