Python Forum
BeautifulSoup - I can't translate html tags that contain <a href=..</a> OR <em></em>
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BeautifulSoup - I can't translate html tags that contain <a href=..</a> OR <em></em>
#11
OK, I see what are you doing.

You are trying to replace the original with the translated text.

Then you need to pinpoint the inside tags and translate them separately and put back together that p tag.

And here is the problem, because of the different language semantics, word order, etc.
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  why doesn't it replace all html tags? Melcu54 3 2,621 Jul-05-2023, 04:47 AM
Last Post: Melcu54
  googletrans library to translate text language for using data frame is not running gcozba2023 0 4,051 Mar-06-2023, 09:50 AM
Last Post: gcozba2023
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 2,880 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  Get text from within h3 html tags Pedroski55 8 8,184 Jan-05-2022, 06:50 AM
Last Post: Larz60+
  How to Translate a python code written in Mac-OS to Windows? alexanderDennisEnviro500 2 5,104 Jul-31-2021, 08:36 AM
Last Post: Gribouillis
  reading html and edit chekcbox to html jacklee26 5 5,603 Jul-01-2021, 10:31 AM
Last Post: snippsat
  Parsing link from html tags with Python Melcu54 0 2,682 Jun-14-2021, 09:25 AM
Last Post: Melcu54
  Delimiters - How to skip some html tags from being translate Melcu54 0 2,559 May-26-2021, 06:21 AM
Last Post: Melcu54
  Including a Variable In the HTML Tags When Sending An Email JoeDainton123 0 3,023 Aug-08-2020, 03:11 AM
Last Post: JoeDainton123
  Translate to noob a Name Eroor message bako 2 3,456 Mar-30-2020, 05:58 PM
Last Post: bako

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020
This forum uses Lukasz Tkacz MyBB addons.
Forum use Krzysztof "Supryk" Supryczynski addons.