I am looking for a solution to import(parse) HTML-Tables directly into my Accessdatabase. When I am using the Do.Cmd- Import HTML Command... I get a whole new Table written into my DB that mirrors the content of the the HTML-Table, I am looking for a direct import solution.
Is there any Option to parse HTML-Tables into an Access-Database like the Import for an Exceltable?
Probably not exactly what you are looking for but Microsoft has a driver you can use for this. I don't see a lot of documentation or examples on it but it appears to be similar to the ODBC text driver.
Go here and scroll do to the part that says "Linking HTML Tables":
http://msdn.microsoft.com/en-us/library/aa164914%28v=office.10%29.aspx
After you have the link setup, if the table and the data all looks correct you should be able to use most any normal Access method to copy the records including copy/paste and VBA DAO loops (the latter being more code intense).
Related
I am working on a GUI (PyQt6) where the user loads some files and adds metadata for each. So for each file, I would like to have a window (QDialog) which is essentially a form with fields which are specified by a json schema.
I am new to PyQt and I can code the mechanism to open a form (QDialog with QLabels and QLineEdit which essentially looks like a form. see image). However, I would like to automatize this step using the schema that's stored in a json file (consider any example json schema).
Is there already a python library for this and I'm absolutely obvious about it?
How would you go about coding this? Thanks!
I'm trying to open the Import Text Wizard as part of my code after it's ftp'd down a text file.
I don't have the metadata of the file as each file could be different, the only things they have in common is that they are pipe delimited with no text qualifier with a header row. No consistency in column type or number of columns.
Hence I don't think I can easily use docmd.transfertext as the specification would have to be different each time.
I don't mind pushing people down the manual route but if I look this up the instructions are to use Docmd.RunCommand acCmdImport. This appears to then be deprecated after Access 2007 as if I run it I get Run-time error 2002 saying the function or feature isn't installed in this version.
What I'm after is either:
A way to open the wizard
or
A way to import / link the text files without knowing the metadata ahead of the import.
The command is:
Docmd.RunCommand(acCmdImportAttachText)
That opens the wizard as if you called it from the band.
Imagine I've created a new javascript framework, and want to showcase some examples that utilise it, and let other people add examples if they want. Crucially I want this to all be on github.
I imagine I would need to provide a template HTML document which includes the framework, and sorts out all the header and footer correctly. People would then add examples into the examples folder.
However, doing it this way, I would just end up with a long list of HTML files. What would I need to do if I wanted to add some sort of metadata about each example, like tags/author/date etc, which I could then provide search functionality on? If it was just me working on this, I think I would probably set up a database. But because it's a collaboration, this is a bit tricky.
Would it work if each HTML file had a corresponding entry in a JSON file listing all the examples where I could put this metadata? Would I be able to create some basic search functionality using this? Would it be a case of: Step 1 : create new example file, step 2: add reference to file and file metadata to JSON file?
A good example of something similar to what I want is wbond's package manager http://wbond.net/sublime_packages/community
(There is not going to be a lot of create/update/destroy going on - mainly just reading.
Check out this Javascript database: http://www.taffydb.com/
There are other Javascript databases that let you load JSON data and then do database operations. Taffy lets you search for documents.
It sounds like a good idea to me though - making HTML files and an associated JSON document that has meta data about it.
I'm trying to import a XML file via phpMyAdmin and map each of the child elements to their corresponding fields within a MySQL table. XML sample:
<event>
<date>1992</date>
<title>Event Title</title>
<description>Event description goes here.</description>
</event>
I have MySQL fields within the table with names identical to the child elements listed above, however, when I import my XML file, I get a message that says "0 queries executed," and of course nothing gets imported.
I tried looking this up via the phpMyAdmin documentation, but I couldn't find anything but a modest description of XML as an import method. How is this supposed to be done?
phpMyAdmin doesn't provide a feature to map XML-elements to corresponding table fields. Sorry.
You need to write a program to do this trick. Or enhance phpMyAdmin.
Sorry but, did you try to do a ISO XML? Why dont you try with the head, and all the things that come with the standard XML? If you can't, try CSV. But the way that phpmyadmin parses the files are very specific
I'm about to start writing a program which will attempt to extract data from a Google Code site so that it may be imported in to another project management site. Specifically, I need to extract the full issue detail from the site (description, comments, and so on).
Unfortunately Google don't provide an API for this, nor do they have an export feature, so to me the only option looks to be extracting the data from the actual HTML (yuck). Does any one have any suggestions on "best practice" from attempting to parse data out of HTML? I'm aware that this is less than ideal, but I don't think I have much choice. Can anyone else think of a better way, or maybe someone else has already done this?
Also, I'm aware of the CSV export feature on the issue page, however this does not give complete data about issues (but could be a useful starting point).
I just finished a program called google-code-export (hosted on Github). This allows you to export your Google Code project to an XML file, for example:
>main.py -p synergy-plus -s 1 -c 1
parse: http://code.google.com/p/synergy-plus/issues/detail?id=1
wrote: synergy-plus_google-code-export.xml
... will create a file named synergy-plus_google-code-export.xml.