www.webdeveloper.com
Results 1 to 3 of 3

Thread: Convert manually a html file to csv

  1. #1
    Join Date
    Jul 2017
    Posts
    8

    Convert manually a html file to csv

    I have to convert html to csv to finally import with Anki

    It is not a table. Are words of the dictionary.

    Please can you explain how to prepare the first line with the first word ?


    Best Regards

    HTML Code:
    bigger
    
    adjective, bigger, biggest.
    1.
    large, as in size, height, width, or amount:
    a big house; a big quantity.
    2.
    of major concern, importance, gravity, or the like:
    a big problem.
    3.
    outstanding for a specified quality:
    a big liar; a big success.
    4.
    important, as in influence, standing, or wealth:
    a big man in his field.
    5.
    grown-up; mature:
    big enough to know better.
    6.
    elder:
    my big sister.
    7.
    doing business or conducted on a large scale; major in size or importance:
    big government.
    8.
    consisting of the largest or most influential companies in an industry:
    Big steel wants to lower prices, but the smaller mills don't.
    9.
    Informal. known or used widely; popular:
    Nouvelle cuisine became big in the 1970s.
    10.
    magnanimous; generous; kindly:
    big enough to forgive.
    11.
    boastful; pompous; pretentious; haughty:
    a big talker.
    12.
    loud; orotund:
    a big voice.
    13.
    (of clothing or a clothing design) made of or distinguished by voluminous fabric that is loosely or softly shaped and fitted:
    a big shirt; the big look.
    14.
    (of a wine) having more than average flavor, body, and alcoholic content.
    15.
    filled; brimming:
    eyes big with tears.
    16.
    Chiefly South Midland and Southern U.S. pregnant.
    17.
    Obsolete. very strong; powerful.
    adverb
    18.
    Informal. boastfully; pretentiously:
    to act big; to talk big.
    19.
    Informal. with great success; successfully:
    to go over big.
    noun
    20.
    the bigs, Sports Slang. the highest level of professional competition, as the major leagues in baseball.
    Idioms
    21.
    be big on, to have a special liking or enthusiasm for:
    Mother is big on family get-togethers.
    22.
    big with child. great (def 23).
    
    better
    
    adjective, compar. of good with best as superl.
    1.
    of superior quality or excellence:
    a better coat; a better speech.
    2.
    morally superior; more virtuous:
    They are no better than thieves.
    3.
    of superior suitability, advisability, desirability, acceptableness, etc.; preferable:
    a better time for action.
    4.
    larger; greater:
    the better part of a lifetime.
    5.
    improved in health; healthier than before.
    6.
    completely recovered in health.
    adverb, compar. of well with best as superl.
    7.
    in a more appropriate or acceptable way or manner:
    to behave better.
    8.
    to a greater degree; more completely or thoroughly:
    He knows the way better than we do. I probably know him better than anyone else.
    9.
    more:
    I walked better than a mile to town.
    verb (used with object)
    10.
    to increase the good qualities of; make better; improve: to better one's grades;
    to better the lot of the suburban commuter.
    11.
    to improve upon; surpass; exceed:
    We have bettered last year's production record.
    12.
    Cards. to raise (a previous bid).
    noun
    13.
    that which has greater excellence or is preferable or wiser:
    the better of two choices.
    14.
    Usually, betters. those superior to one in wisdom, wealth, etc.
    Idioms
    15.
    better off,
    
        in better circumstances.
        more fortunate; happier:
        Because of his asthma, he would be better off in a different climate.
    
    16.
    better oneself, to improve one's social standing, financial position, or education:
    He is going to night school because he wants to better himself.
    17.
    for the better, in a way that is an improvement:
    His health changed for the better.
    18.
    get / have the better of,
    
        to get an advantage over.
        to prevail against.
    
    19.
    go (someone) one better, to exceed the effort of; be superior to:
    The neighbors went us one better by buying two new cars.
    20.
    had better, would be wiser or more well-advised to; ought to:
    We had better stay indoors today.
    21.
    no better than one should be, morally inferior; immoral or amoral:
    Don't speak to him; he's no better than he should be!
    22.
    think better of,
    
        to reconsider and decide more favorably or wisely regarding:
        I was tempted to make a sarcastic retort, but thought better of it.
        to form a higher opinion of:
        I think better of him now that he's gone back to college.
    
    faster
    
    adjective, faster, fastest.
    1.
    moving or able to move, operate, function, or take effect quickly; quick; swift; rapid:
    a fast horse; a fast pain reliever; a fast thinker.
    2.
    done in comparatively little time; taking a comparatively short time:
    a fast race; fast work.
    3.
    
        indicating a time in advance of the correct time, as of a clock.
        noting or according to daylight-saving time.
    
    4.
    adapted to, allowing, productive of, or imparting rapid movement:
    a hull with fast lines; one of the fastest pitchers in baseball.
    5.
    characterized by unrestrained conduct or lack of moral conventions, especially in sexual relations; wanton; loose:
    Some young people in that era were considered fast, if not downright promiscuous.
    6.
    characterized by hectic activity:
    leading a fast life.
    7.
    resistant:
    acid-fast.
    8.
    firmly fixed in place; not easily moved; securely attached.
    9.
    held or caught firmly, so as to be unable to escape or be extricated:
    an animal fast in a trap.
    10.
    firmly tied, as a knot.
    11.
    closed and made secure, as a door, gate, or shutter.
    12.
    such as to hold securely:
    to lay fast hold on a thing.
    13.
    firm in adherence; loyal; devoted:
    fast friends.
    14.
    permanent, lasting, or unchangeable:
    a fast color; a hard and fast rule.
    15.
    Informal.
    
        (of money, profits, etc.) made quickly or easily and sometimes deviously:
        He earned some fast change helping the woman with her luggage.
        cleverly quick and manipulative in making money:
        a fast operator when it comes to closing a business deal.
    
    16.
    Photography.
    
        (of a lens) able to transmit a relatively large amount of light in a relatively short time.
        (of a film) requiring a relatively short exposure time to attain a given density.
    
    17.
    Horse Racing.
    
        (of a track condition) completely dry.
        (of a track surface) very hard.
    
    adverb, faster, fastest.
    18.
    quickly, swiftly, or rapidly.
    19.
    in quick succession:
    Events followed fast upon one another to the crisis.
    20.
    tightly; firmly:
    to hold fast.
    21.
    soundly:
    fast asleep.
    22.
    in a wild or dissipated way.
    23.
    ahead of the correct or announced time.
    24.
    Archaic. close; near:
    fast by.
    noun
    25.
    a fastening for a door, window, or the like.
    Idioms
    26.
    play fast and loose. play (def 80).
    27.
    pull a fast one, Informal. to play an unfair trick; practice deceit:
    He tried to pull a fast one on us by switching the cards.

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    22,284
    If it is well-formed HTML, you could use any programming language with DOM support (Document Object Model) and likely parse it into something that could then be easily dumped into a CSV file. Further specifics are difficult at this point without knowing how the text is actually marked up.
    "Well done....Consciousness to sarcasm in five seconds!" ~ Terry Pratchett, Night Watch

    How to Ask Questions the Smart Way (not affiliated with this site, but well worth reading)

    My Blog
    cwrBlog: simple, no-database PHP blogging framework

  3. #3
    Join Date
    Jul 2017
    Posts
    8
    Thanks a lot.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center

"

"

X vBulletin 4.2.2 Debug Information

  • Page Generation 0.33906 seconds
  • Memory Usage 2,874KB
  • Queries Executed 14 (?)
More Information
Template Usage (33):
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (3)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (3)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates