littlebigman Posted January 24, 2023 Posted January 24, 2023 Hello, Before retiring an old blog, I need to copy its articles as topics into a phpBB forum. Fiddling with SQL turned out to be a bit too involved withoutย knowing how phpBB works under the hood. Creating a new topic is pretty simple: Click on "New Topic" Fill Subject + Body Click on "Submit" All the articles will live in the same forum in the board. It looks like AutoIT currently offers two supported tools for web automation:ย IUIAutomation ("can be used for multiple applications, and is based on the Microsoft automation API") andย WebDriver ("the WebDriver interface for automation, it is the web standard for automation"). Before I dive in, which tool would you recommend for that job? Thank you.
SOLVE-SMART Posted January 24, 2023 Posted January 24, 2023 Hi @littlebigman, out of your described scenario, I personally would go with WebDriver (au3WebDriver). As I understood, you want to find articles (you want to have the texts) of a blog website, you want to go to an forum website and create for each of the articles a new topic/thread (with the texts). Am I right? Depending on the structure of your blog articles (order in the DOM), WebDriver should manage this easily. How about your experience with WebDriver? And with AutoIt? I ask because in case you're more familiar with JavaScript or Python for example, you could use Selenium instead. But of course, AutoIt and the au3WebDriver is well documented and works great ๐ . By the way: A WebDriver Tutorial (as addition to the already given documentation) that I create is currently in progress and will be (hopefully) released at the end of the month (or at least in February). I told you this in case you are not in rush and can wait (or you "dive in" and do it ๐ ). Best regards Sven ==> AutoIt related: ๐ GitHub, ๐ Discord Server Spoiler ๐ย Au3Forums ๐ฒ AutoIt (en) Cheat Sheet ๐ AutoIt limits/defaults ๐ Code Katas: [...] (comming soon) ๐ญ Collection of GitHub users with AutoIt projects ๐ย False-Positives ๐ฎย Me on GitHub ๐ฌย Opinion about new forum sub category ๐ย UDF wiki list โย VSCode-AutoItSnippets ๐ย WebDriver FAQs ๐จโ๐ซย WebDriver Tutorial (coming soon)
littlebigman Posted January 24, 2023 Author Posted January 24, 2023 Thanks for the infos. I actually now have the blog articles in an SQLite database, so it'll be straight from there to phpBB. I've fiddled a bit with AutoIT in the past, but am more familiar with Python. So I'll check both solutions.
SOLVE-SMART Posted January 24, 2023 Posted January 24, 2023 Okay, this means you will load the data from SQLite into an array (I guess) and you will then go forward to the forum website and create the new entries (topics), alright. You can do it with AutoIt (the SQLite handling), also with Python. You can use AutoIt and au3WebDriver or Python and Selenium. Doesn't matter at the end, like you said it's only a "one timer". Both ways would do the job, but since you are here @littlebigman in aย AutoIt community, I have to suggest: use AutoIt for all of this ๐ . Best regards Sven ==> AutoIt related: ๐ GitHub, ๐ Discord Server Spoiler ๐ย Au3Forums ๐ฒ AutoIt (en) Cheat Sheet ๐ AutoIt limits/defaults ๐ Code Katas: [...] (comming soon) ๐ญ Collection of GitHub users with AutoIt projects ๐ย False-Positives ๐ฎย Me on GitHub ๐ฌย Opinion about new forum sub category ๐ย UDF wiki list โย VSCode-AutoItSnippets ๐ย WebDriver FAQs ๐จโ๐ซย WebDriver Tutorial (coming soon)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now