Code: Select all
username=re.findall('<h[^>]*>Viewing profile :: (.+?)</h',userdata)
Code: Select all
<h1 class="page-title" style="margin-bottom:1em;">
Viewing profile:
<span style="color:#XXXXXX">
<strong>NAME</strong>
</span>
</h1>
Code: Select all
username=re.findall('<h1[^>]*>Viewing profile :: (.+?)</h1>', userdata)
Code: Select all
username=re.findall('<h1[^>]*>Viewing profile: (.+?)</h1>', userdata)
eToxic reads this board. A new script was posted, and not surprisingly, it has been rendered useless.In a previous post, I wrote:The membership and topic data will be intentionally corrupted if eToxic detects that the scripts from here are being run. You will think the export went smoothly...until you import the data and see that your new phpBB board is worthless.
You suggest me to write my own? Seems like I'm already doing it step by stepDionDesigns wrote:eToxic reads this board. A new script was posted, and not surprisingly, it has been rendered useless.In a previous post, I wrote:The membership and topic data will be intentionally corrupted if eToxic detects that the scripts from here are being run. You will think the export went smoothly...until you import the data and see that your new phpBB board is worthless.
The only solution is to use scripts that eToxic has never seen.
First time in months I've used phpBB 3.1 for anything other than compatibility testing. Good lord is it sluggish.
Postcount+1 I guess...thanks captain.Lumpy Burgertushie wrote:he is telling you that the reason you are having these problems with the script is because the owners of the forumotion site do not want you to be able to convert your board and save it from their servers.
therefore, when they see a new script that allows it, they rewrite their code on their servers to prevent it from working properly.
when a new script comes along that will convert it, only the few lucky ones that see it before forumotion does will be able to make it work right.
robert
Code: Select all
for memberid in xrange(1,NUMUSERS+1):
try:
random.seed(RANDOMNUMBER+hash(memberid)) # creates static member passwords: they will never change.
statusline="Member %s ... "%memberid
userdata=download_page(URL+'u'+str(memberid),statusline+"Downloading - ",COOKIEDATA, sleeptime=BACKOFF)
if '<div id="profile-advanced-layout">' in userdata:
# "advanced" layout, grab additional info
userdata+=download_page(URL+'u'+str(memberid)+'contact',statusline+"Downloading Page 2 - ",COOKIEDATA, sleeptime=BACKOFF)
userdata+=download_page(URL+'u'+str(memberid)+'stats',statusline+"Downloading Page 3 - ",COOKIEDATA, sleeptime=BACKOFF)
p=re.findall(r'<dt>(?:<span[^>]*>)?([^<>\n]+?)(?: \*)?(?:</span>)?(?: \*)?: ?(?: )?</dt> ?<dd>(?:<div class="field_uneditable">)?(.+?)(?:</div>|</dd>)', userdata) # locate all "quick info" lines
p+=re.findall(r'<br />([^<>\n]+?) *: (.+?)(?:</div>)?<span class="corners-bottom">', userdata)
p+=re.findall(r'<li><label>(Joined|Last visit) *:</label> ?(.+?)</li>', userdata)
username=re.findall('<h1[^>]*>Viewing profile: (.+?)</h1>', userdata)
printline(userdata)
if not p or not username: # oops, no profile lines found
printline(statusline+"Warning: Member doesn't exist!")
print
continue
Nope that is somewhat corrected part of TS members_topics_posts script, those who'll need it can find that part inside the script, that's what I'm doing here, I'm not creating something from start.DionDesigns wrote:If that's the script you used, make sure to inspect the data. Unless you were exporting less than 25 or so users, something tells me it is not what you expect it to be.